Description
In the Linux kernel, the following vulnerability has been resolved: cxl/features: Reject Set Features output buffer smaller than the header cxlctl_set_feature() sizes its output buffer from the user's fwctl_rpc.out_len but never checks it is large enough to hold even the fwctl_rpc_cxl_out header. With out_len == 0 , kvzalloc() returns ZERO_SIZE_PTR, which passes the !rpc_out check, the subsequent rpc_out->size = 0 then writes through the poison pointer. Reject requests whose output buffer can't hold the response header, before allocating. The Set Feature reply carries no payload, so the header is all that is required.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
eb5dfcb9e36d0e46089fec777d911313c1876fa3 to < 1281dc84c81577b51e2b61c24617c9f44b2cdb99affectedeb5dfcb9e36d0e46089fec777d911313c1876fa3 to < 16b7c99eff030c6ea11ca24efa4b9f989cc74093affectedeb5dfcb9e36d0e46089fec777d911313c1876fa3 to < cde18d6c1d913a67ab0afd3d9475ece4be79da50affected
Linux Linux
Default version status: affected
6.15affected0 to < 6.15unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected