CVE-2024-36898 gpiolib: cdev: fix uninitialised kfifo

High 7.1 Published Updated

An attacker can read uninitialized memory from the kernel via GPIO edge events when software debounce is active, potentially exposing sensitive data.

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-36898?

CVE-2024-36898 is a high-severity vulnerability in Linux kernel, published on 30 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:

gpiolib: cdev: fix uninitialised kfifo

If a line is requested with debounce, and that results in debouncing in software, and the line is subsequently reconfigured to enable edge detection then the allocation of the kfifo to contain edge events is overlooked. This results in events being written to and read from an uninitialised kfifo. Read events are returned to userspace.

Initialise the kfifo in the case where the software debounce is already active.

Weakness: CWE-908

Which versions are affected by CVE-2024-36898?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-36898?

Apply the vendor's patch.

Is CVE-2024-36898 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-67503, BELL-CVE-2024-36898, DEBIAN-CVE-2024-36898, ROOT-OS-DEBIAN-11-CVE-2024-36898, ROOT-OS-UBUNTU-2204-CVE-2024-36898, UBUNTU-CVE-2024-36898.

Is CVE-2024-36898 in your software?

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

Check your SBOMs for free