Linux
cxl/features: Reject Get Feature count larger than the output buffer
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5908f3ed6dc209e5c824e63afda7545805f75a7e, < 3f02031a0a53de0d3ef066c92d0486b2b11be40c
- >= 5908f3ed6dc209e5c824e63afda7545805f75a7e, < 329ea475581c647a680a6937e353c1a6e2534b40
- >= 5908f3ed6dc209e5c824e63afda7545805f75a7e, < 4bf6bac375076ced2fa4b3fef8739bd985f93456
Fixed in 3f02031a0a53de0d3ef066c92d0486b2b11be40c, 329ea475581c647a680a6937e353c1a6e2534b40, 4bf6bac375076ced2fa4b3fef8739bd985f93456
- 6.15
Fixed in 0, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to 3f02031a0a53de0d3ef066c92d0486b2b11be40c or 329ea475581c647a680a6937e353c1a6e2534b40 or 4bf6bac375076ced2fa4b3fef8739bd985f93456 or later.
Upgrade Linux to 0 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.