CVE-2019-25160 netlabel: fix out-of-bounds memory accesses
Out-of-bounds memory accesses in the Linux kernel netlabel subsystem allow attackers to cause denial of service or potentially execute code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-25160?
CVE-2019-25160 is a critical memory corruption vulnerability in Linux kernel, published on 26 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
netlabel: fix out-of-bounds memory accesses
There are two array out-of-bounds memory accesses, one in cipso_v4_map_lvl_valid(), the other in netlbl_bitmap_walk(). Both errors are embarassingly simple, and the fixes are straightforward.
As a FYI for anyone backporting this patch to kernels prior to v4.8, you'll want to apply the netlbl_bitmap_walk() patch to cipso_v4_bitmap_walk() as netlbl_bitmap_walk() doesn't exist before Linux v4.8.
Weakness: CWE-125
Which versions are affected by CVE-2019-25160?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2019-25160?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-25160 being exploited?
There is no known exploitation of CVE-2019-25160 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-39908, DEBIAN-CVE-2019-25160, GHSA-gj7p-vqfr-xgjw, UBUNTU-CVE-2019-25160.