CVE-2024-26622 tomoyo: fix UAF write bug in tomoyo_write_control()

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's TOMOYO security module allows attackers to execute arbitrary code or escalate privileges via concurrent write requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26622?

CVE-2024-26622 is a high-severity use after free vulnerability in Linux kernel, published on 4 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-416

Which versions are affected by CVE-2024-26622?

It affects 1 product.

Linux distribution packages (1)
kernel-livepatch-SLE15-SP3_Update_41 SUSE:Linux Enterprise Live Patching 15 SP3All versions5-150300.2.1

Products include Linux kernel.

How do I fix CVE-2024-26622?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-26622 being exploited?

There is no known exploitation of CVE-2024-26622 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26622, DEBIAN-CVE-2024-26622, GHSA-hmvg-cx6j-hfj7, SUSE-SU-2024:1391-1, UBUNTU-CVE-2024-26622.

Is CVE-2024-26622 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free