Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 5908f3ed6dc209e5c824e63afda7545805f75a7e before 3f02031a0a53de0d3ef066c92d0486b2b11be40c; affected 5908f3ed6dc209e5c824e63afda7545805f75a7e before 329ea475581c647a680a6937e353c1a6e2534b40; affected 5908f3ed6dc209e5c824e63afda7545805f75a7e before 4bf6bac375076ced2fa4b3fef8739bd985f93456 |
| Linux / Linux | affected 6.15; unaffected 0 before 6.15; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.