CVE-2023-52615 hwrng: core - Fix page fault dead lock on mmap-ed hwrng

Medium 5.5 Published Updated

A local attacker can cause a kernel deadlock and denial of service by reading from the hardware random number generator device into memory mapped from the same device.

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

CVE-2023-52615 is a medium-severity vulnerability in Linux kernel, published on 18 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:

hwrng: core - Fix page fault dead lock on mmap-ed hwrng

There is a dead-lock in the hwrng device read path. This triggers when the user reads from /dev/hwrng into memory also mmap-ed from /dev/hwrng. The resulting page fault triggers a recursive read which then dead-locks.

Fix this by using a stack buffer when calling copy_to_user.

Weakness: CWE-667

Which versions are affected by CVE-2023-52615?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52615?

Apply the vendor's patch.

Is CVE-2023-52615 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52615, DEBIAN-CVE-2023-52615, GHSA-3wwr-wv4x-4gxg, UBUNTU-CVE-2023-52615.

Is CVE-2023-52615 in your software?

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

Check your SBOMs for free