CVE-2023-52731 fbdev: Fix invalid page access after closing deferred I/O devices

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's fbdev subsystem allows attackers to cause a system crash via delayed work processing after device closure.

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-2023-52731?

CVE-2023-52731 is a high-severity use after free vulnerability in Linux kernel, published on 21 May 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:

fbdev: Fix invalid page access after closing deferred I/O devices

When a fbdev with deferred I/O is once opened and closed, the dirty pages still remain queued in the pageref list, and eventually later those may be processed in the delayed work. This may lead to a corruption of pages, hitting an Oops.

This patch makes sure to cancel the delayed work and clean up the pageref list at closing the device for addressing the bug. A part of the cleanup code is factored out as a new helper function that is called from the common fb_release().

Weakness: CWE-125

Which versions are affected by CVE-2023-52731?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52731?

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-2023-52731 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52731, DEBIAN-CVE-2023-52731, GHSA-w9fv-gm94-h938, UBUNTU-CVE-2023-52731.

Is CVE-2023-52731 in your software?

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

Check your SBOMs for free