CVE-2025-21772·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: partitions: mac: fix handling of bogus partition table Fix several issues in partition probing: - The bailout for a bad partoffset must use put_dev_sector(), since the preceding read_part_sector() succeeded. - If the partition table claims a silly sector size like 0xfff bytes (which results in partition table entries straddling sector boundaries), bail out instead of accessing out-of-bounds memory. - We must not assume that the partition table contains proper NUL termination - use strnlen() and strncmp() instead of strlen() and strcmp().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.4
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.4
Fixed in: 6.13.4
How to fix this CVE
Update your Linux kernel to version 6.13.4 or later to resolve critical memory safety issues in MAC partition table parsing. This patch addresses unsafe memory access when the kernel encounters malformed partition tables with invalid sector sizes or missing string termination, which could lead to privilege escalation or system compromise by a local attacker.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and verify it is 6.13.4 or later
- Check if MAC partition tables are in use by running 'sudo fdisk -l | grep -i mac' to identify potentially vulnerable storage devices
- Monitor kernel logs with 'sudo journalctl -k | grep -i partition' for any partition table parsing errors or panics
- After patching, reboot and re-run 'uname -r' to confirm the new kernel version is active
FAQ
What is CVE-2025-21772?
This is a high-severity kernel vulnerability in MAC partition table parsing that fails to properly validate sector sizes and string boundaries. A local attacker with low privileges can trigger memory corruption by crafting a malicious partition table, potentially leading to privilege escalation or denial of service.
Is CVE-2025-21772 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the high CVSS score (7.8) and local privilege escalation potential make it a priority for patching.
What versions of Kernel are affected by CVE-2025-21772?
Linux kernel versions 6.13 through 6.13.3 are vulnerable. Kernel version 6.13.4 and later include the fix.
How do I check if my server is vulnerable to CVE-2025-21772?
Run 'uname -r' and compare the output to version 6.13.4. If your kernel version is between 6.13 and 6.13.3 (inclusive), your system is vulnerable.
Does Defensia detect CVE-2025-21772?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2025-21772 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/213ba5bd81b7e97ac6e6190b8f3bc6ba76123625
- https://git.kernel.org/stable/c/27a39d006f85e869be68c1d5d2ce05e5d6445bf5
- https://git.kernel.org/stable/c/40a35d14f3c0dc72b689061ec72fc9b193f37d1f
- https://git.kernel.org/stable/c/6578717ebca91678131d2b1f4ba4258e60536e9f
- https://git.kernel.org/stable/c/7fa9706722882f634090bfc9af642bf9ed719e27
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21772. Free for 1 server.
Get started free