CVE-2022-49413 bfq: Update cgroup information before merging bio

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel BFQ scheduler allows attackers to execute arbitrary code or escalate privileges via stale cgroup information during bio merging.

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-2022-49413?

CVE-2022-49413 is a high-severity use after free vulnerability in Linux kernel, published on 26 Feb 2025. 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:

bfq: Update cgroup information before merging bio

When the process is migrated to a different cgroup (or in case of writeback just starts submitting bios associated with a different cgroup) bfq_merge_bio() can operate with stale cgroup information in bic. Thus the bio can be merged to a request from a different cgroup or it can result in merging of bfqqs for different cgroups or bfqqs of already dead cgroups and causing possible use-after-free issues. Fix the problem by updating cgroup information in bfq_merge_bio().

Weakness: CWE-416

Which versions are affected by CVE-2022-49413?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49413?

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-2022-49413 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49413, GHSA-8q79-fmf3-xh7r, UBUNTU-CVE-2022-49413.

Is CVE-2022-49413 in your software?

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

Check your SBOMs for free