cxl/features: Clamp Get Feature output size to the remaining buffer
- 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: cxl/features: Clamp Get Feature output size to the remaining buffer cxl_get_feature() reads a feature in a loop but passes a fixed size_out as the output capacity every iteration. On the last partial iteration the buffer has less room left, so a device that returns more than asked can overflow feat_out. Use the per-iter size data_to_rd_size, which already tracks the remaining room, as the output capacity.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5e5ac21f629de796ab5d598b59c5e468c6fe4f95 · fixed in b8abbd5c2928fd839dab702244cc57b228ab43aa; From 5e5ac21f629de796ab5d598b59c5e468c6fe4f95 · fixed in ca95b15a0760e7724e61addbdd61050be13b6406; From 5e5ac21f629de796ab5d598b59c5e468c6fe4f95 · fixed in 2aeb21fe557ef154f0cdf4f9745ebd8d5b31ca83
- Linux Linux
6.15
- KernelLinux
From 6.15.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6