CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of response lengths reported by NSM devices, allowing a malicious or faulty backend to specify a length greater than the allocated response buffer. This can lead to an out-of-bounds read, potentially disclosing sensitive information from adjacent kernel memory to user space. Organizations using Linux systems with NSM devices should prioritize this issue to mitigate the risk of information leakage.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: misc: nsm: bound the device-reported response length nsm_sendrecv_msg_locked() stores the virtqueue used-ring length reported by the NSM device into msg->resp.len without bounding it to the response buffer. A malicious or buggy backend can report a length larger than the response buffer; parse_resp_raw() then copies that many bytes out of the fixed buffer to user space, disclosing adjacent kernel heap (an out-of-bounds read). The request path already floors its length in fill_req_raw(); the response path lacks the symmetric check. Clamp the stored length to the size of the response buffer. Well-behaved devices report no more than the posted buffer size, so conforming traffic is unaffected.