CVE-2021-47240 net: qrtr: fix OOB Read in qrtr_endpoint_post
An integer overflow in the Linux kernel QRTR subsystem allows out-of-bounds reads, potentially leading to information disclosure or system crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47240?
CVE-2021-47240 is a high-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-125
Which versions are affected by CVE-2021-47240?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47240?
Apply the vendor's patch.
Is CVE-2021-47240 being exploited?
There is no known exploitation of CVE-2021-47240 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47240, GHSA-6h98-v544-xj7q, UBUNTU-CVE-2021-47240.