hwrng: xilinx-trng - propagate timeout before any data is read
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.52, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: hwrng: xilinx-trng - propagate timeout before any data is read xtrng_readblock32() polls for 16-byte chunks but returns the number of bytes read even when the first poll times out. Its caller then treats a zero return as a short successful read, and partial reads for full 32-byte blocks can make the tail copy use a fixed block offset rather than the amount already produced. Return the poll error when no data has been read, preserve partial positive returns after some data is available, stop the generator on all collection exits, and append tail bytes at the current output count.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 8979744aca8096ee5072798dfc1181606919b35d · fixed in 62219775a07ce0bd8085852f3d1e2d772bf6fdec; From 8979744aca8096ee5072798dfc1181606919b35d · fixed in bdc3b37a935f28c3e9eb2f6e889b4644d859fb08; From 8979744aca8096ee5072798dfc1181606919b35d · fixed in ba088974419326daf46c5dc03e2cf6ab6ab701f7
- Linux Linux
6.18
- KernelLinux
From 6.18.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6