fbdev: core: Fix pointer desynchronization in fb_io_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.6.153, 6.12.105, 6.18.46, 7.1.10
- 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
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
In the Linux kernel, the following vulnerability has been resolved: fbdev: core: Fix pointer desynchronization in fb_io_read() In fb_io_read(), if copy_to_user() performs a partial copy (e.g., due to a faulty user buffer), the loop adjusts the chunk size 'c' and updates the remaining 'count'. However, the hardware 'src' pointer has already been eagerly advanced by the original chunk size. If the loop is allowed to continue, the read will resume from an incorrect, over-advanced offset. Since the remaining 'count' was only decremented by the successful bytes, this desynchronization causes the next iterations to execute more hardware reads than originally bounded, eventually leading to out-of-bounds I/O reads. Fix this by breaking out of the loop immediately upon a partial copy_to_user(). A partial copy indicates a faulty user buffer, making subsequent read attempts futile. Breaking out ensures we return the number of successfully read bytes without risking out-of-bounds hardware accesses in subsequent mismatched iterations.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff · fixed in 42bc07b4e5a3c8a02a433388f562a8f46d093e11; From 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff · fixed in 42a6d8126c194133eafab2b0fd5c8668ebfcba5b; From 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff · fixed in 7ff87a01ae3a8cd0208f7499386998223a8b5dba; From 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff · fixed in 7110b7b794a2aac2c5cf8eb06ebf2af724c74d50; From 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff · fixed in 81cc73be40c6f028f1ee3f438ace46afe666dbae
- Linux Linux
6.5
- KernelLinux
From 6.5.0 · fixed in 6.6.153; From 6.7.0 · fixed in 6.12.105; From 6.13.0 · fixed in 6.18.46; From 6.19.0 · fixed in 7.1.10