net: qrtr: fix OOB Read in qrtr_endpoint_post
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: qrtr: fix OOB Read in qrtr_endpoint_post
Syzbot reported slab-out-of-bounds Read in qrtr_endpoint_post. The problem was in wrong _size_ type:
if (len != ALIGN(size, 4) + hdrlen) goto err;
If size from qrtr_hdr is 4294967293 (0xfffffffd), the result of ALIGN(size, 4) will be 0. In case of len == hdrlen and size == 4294967293 in header this check won't fail and
skb_put_data(skb, data + hdrlen, size);
will read out of bound from data, which is hdrlen allocated block.
From the CVE record · Linux
The Linux kernel’s QRTR endpoint handler has an out-of-bounds read caused by an incorrect size check. A header size of 4294967293 with a matching message length can bypass the check and trigger the read. The input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with the affected QRTR code should check their systems; affected versions are not specified.