cxl/features: Reject Get Feature count larger than the output buffer
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 329ea475581c647a680a6937e353c1a6e2534b40, Kernel 3f02031a0a53de0d3ef066c92d0486b2b11be40c and Kernel 4bf6bac375076ced2fa4b3fef8739bd985f93456.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.15, >=5908f3ed6dc209e5c824e63afda7545805f75a7e <329ea475581c647a680a6937e353c1a6e2534b40, >=5908f3ed6dc209e5c824e63afda7545805f75a7e <3f02031a0a53de0d3ef066c92d0486b2b11be40c, >=5908f3ed6dc209e5c824e63afda7545805f75a7e <4bf6bac375076ced2fa4b3fef8739bd985f93456 | 329ea475581c647a680a6937e353c1a6e2534b40, 3f02031a0a53de0d3ef066c92d0486b2b11be40c, 4bf6bac375076ced2fa4b3fef8739bd985f93456 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket