hwrng: core - Fix page fault dead lock on mmap-ed hwrng
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9996508b3353063f2d6c48c1a28a84543d72d70b · < ecabe8cd456d3bf81e92c53b074732f3140f170d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s hwrng read path can deadlock when a local user reads from /dev/hwrng into memory also mapped from /dev/hwrng. The resulting page fault triggers a recursive read and deadlocks the operation.
Anyone running a Linux kernel with the affected hwrng read path should check their installation; affected versions were not provided.