CVE-2021-47172 iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers
A potential integer overflow in the AD7124 ADC driver allows attackers to cause memory corruption or denial of service via non-sequential channel numbers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47172?
CVE-2021-47172 is a medium-severity vulnerability in Linux kernel, published on 25 Mar 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:
iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers
Channel numbering must start at 0 and then not have any holes, or it is possible to overflow the available storage. Note this bug was introduced as part of a fix to ensure we didn't rely on the ordering of child nodes. So we need to support arbitrary ordering but they all need to be there somewhere.
Note I hit this when using qemu to test the rest of this series. Arguably this isn't the best fix, but it is probably the most minimal option for backporting etc.
Alexandru's sign-off is here because he carried this patch in a larger set that Jonathan then applied.
Weakness: CWE-120
Which versions are affected by CVE-2021-47172?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47172?
Apply the vendor's patch.
Is CVE-2021-47172 being exploited?
There is no known exploitation of CVE-2021-47172 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47172, GHSA-mpx6-5vmm-97rr, UBUNTU-CVE-2021-47172.