CVE-2024-26622·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: tomoyo: fix UAF write bug in tomoyo_write_control() Since tomoyo_write_control() updates head->write_buf when write() of long lines is requested, we need to fetch head->write_buf after head->io_sem is held. Otherwise, concurrent write() requests can cause use-after-free-write and double-free problems.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.9
- Published
- 2024-03-04
Affected versions
From: 6.7
Until: 6.7.9
Fixed in: 6.7.9
How to fix this CVE
Update your Linux kernel to version 6.7.9 or later to resolve a use-after-free vulnerability in the TOMOYO security module's write control function. This flaw allows local authenticated users to trigger memory corruption through concurrent write operations. Prioritize this patch for systems where unprivileged users have shell access or where TOMOYO MAC is actively enforced.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; if it is 6.7.0 through 6.7.8, your system is vulnerable
- Verify if TOMOYO is enabled: check 'cat /proc/cmdline' for 'security=tomoyo' or verify with 'cat /sys/kernel/security/lsm'
- Review authentication logs for unusual local user activity: 'sudo journalctl -u auth --since '1 week ago'' to identify potential exploitation attempts
- Confirm the patch has been applied by re-running 'uname -r' post-kernel-update and verifying the version is 6.7.9 or higher
FAQ
What is CVE-2024-26622?
CVE-2024-26622 is a use-after-free memory corruption vulnerability in the Linux kernel's TOMOYO MAC module that occurs when multiple write() calls modify shared buffers concurrently. An authenticated local attacker can exploit this race condition to corrupt kernel memory and potentially escalate privileges.
Is CVE-2024-26622 being actively exploited?
No, there are no confirmed reports of active exploitation or public proof-of-concept exploits available as of the advisory date. However, the vulnerability requires low complexity to trigger and affects local authenticated users, making it a credible threat in multi-user environments.
What versions of Kernel are affected by CVE-2024-26622?
Linux kernel versions 6.7.0 through 6.7.8 are vulnerable. Kernel 6.7.9 and later versions include the fix.
How do I check if my server is vulnerable to CVE-2024-26622?
Run 'uname -r' to display your kernel version; if it shows 6.7.0 to 6.7.8, you are vulnerable. Additionally, check if TOMOYO is active with 'cat /sys/kernel/security/lsm' — the vulnerability is only exploitable if TOMOYO is loaded.
Does Defensia detect CVE-2024-26622?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-26622 will appear in your dashboard with remediation steps and risk scoring.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2caa605079488da9601099fbda460cfc1702839f
- https://git.kernel.org/stable/c/2f03fc340cac9ea1dc63cbf8c93dd2eb0f227815
- https://git.kernel.org/stable/c/3bfe04c1273d30b866f4c7c238331ed3b08e5824
- https://git.kernel.org/stable/c/6edefe1b6c29a9932f558a898968a9fcbeec5711
- https://git.kernel.org/stable/c/7d930a4da17958f869ef679ee0e4a8729337affc
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-26622. Free for 1 server.
Get started free