CVE-2024-36001
Last modified
CVE-2024-36001 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: netfs: Fix the pre-flush when appending to a file in writethrough mode In netfs_perform_write(), when the file is marked NETFS_ICTX_WRITETHROUGH or O_*SYNC or RWF_*SYNC was specified, write-through caching is performed on a buffered file. When setting up for write-through, we flush any conflicting writes in the region and wait for the write to complete, failing if there's a write error to return. The issue arises if we're writing at or above the EOF position because we skip the flush and - more importantly - the wait. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: netfs: Fix the pre-flush when appending to a file in writethrough mode In netfs_perform_write(), when the file is marked NETFS_ICTX_WRITETHROUGH or O_*SYNC or RWF_*SYNC was specified, write-through caching is performed on a buffered file. When setting up for write-through, we flush any conflicting writes in the region and wait for the write to complete, failing if there's a write error to return. The issue arises if we're writing at or above the EOF position because we skip the flush and - more importantly - the wait. This becomes a problem if there's a partial folio at the end of the file that is being written out and we want to make a write to it too. Both the already-running write and the write we start both want to clear the writeback mark, but whoever is second causes a warning looking something like: ------------[ cut here ]------------ R=00000012: folio 11 is not under writeback WARNING: CPU: 34 PID: 654 at fs/netfs/write_collect.c:105 ... CPU: 34 PID: 654 Comm: kworker/u386:27 Tainted: G S ... ... Workqueue: events_unbound netfs_write_collection_worker ... RIP: 0010:netfs_writeback_lookup_folio Fix this by making the flush-and-wait unconditional. It will do nothing if there are no folios in the pagecache and will return quickly if there are no folios in the region specified. Further, move the WBC attachment above the flush call as the flush is going to attach a WBC and detach it again if it is not present - and since we need one anyway we might as well share it.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.8, < 6.8.9 | — |
| Linux | Linux Kernel | 6.9 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-36001?
How severe is CVE-2024-36001?
How do I fix CVE-2024-36001?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-35996In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35997In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35998In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35999In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2024-3600The Poll Maker – Best WordPress Poll Plugin plugin for WordP…6.1
- CVE-2024-36000In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36002In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36003In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36004In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36005In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36006In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-36007In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-36001?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
