cxl/features: Reject Get Feature count larger than the output 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: Reject Get Feature count larger than the output buffer cxlctl_get_feature() sizes its output buffer from the user's fwctl_rpc.out_len, but the device is told to write cxl_mbox_get_feat_in.count bytes into rpc_out->payload, which is a separate user-controlled value. Nothing bounds count against out_len, so a small out_len with a large count overflows the kvzalloc()'d buffer. A heap OOB write reachable from FWCTL_RPC. Reject requests where count exceeds the available payload room, before allocating.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5908f3ed6dc209e5c824e63afda7545805f75a7e · fixed in 3f02031a0a53de0d3ef066c92d0486b2b11be40c; From 5908f3ed6dc209e5c824e63afda7545805f75a7e · fixed in 329ea475581c647a680a6937e353c1a6e2534b40; From 5908f3ed6dc209e5c824e63afda7545805f75a7e · fixed in 4bf6bac375076ced2fa4b3fef8739bd985f93456
- Linux Linux
6.15
- KernelLinux
From 6.15.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6