net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ad9d24c9429e2159d1e279dc3a83191ccb4daf1d · < 22100a8f73d4ae4f17697dae93d4e2e1d283a6ec| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post()
qrtr_endpoint_post() validates an incoming packet with
if (!size || len != ALIGN(size, 4) + hdrlen) goto err;
where size comes from the wire. On 32-bit, size_t is 32 bits and ALIGN(size, 4) wraps to 0 for size >= 0xfffffffd, so the check passes and skb_put_data(skb, data + hdrlen, size) writes past the hdrlen-sized skb and oopses the kernel. 64-bit is unaffected.
This is the 32-bit residual of ad9d24c9429e2 ("net: qrtr: fix OOB Read in qrtr_endpoint_post"), which fixed only the 64-bit case.
Reject any size that cannot fit the buffer before the ALIGN.
From the CVE record · Linux
On 32-bit Linux, an integer overflow in qrtr_endpoint_post() can let a crafted incoming packet pass validation and cause an out-of-bounds write that crashes the kernel. The issue does not affect 64-bit systems; the input does not specify authentication or user-interaction requirements.
Engineers running 32-bit Linux kernels should check whether their kernel includes the QRTR fix; affected versions are not specified.