CVE-2025-21676
Last modified
CVE-2025-21676 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: fec: handle page_pool_dev_alloc_pages error The fec_enet_update_cbd function calls page_pool_dev_alloc_pages but did not handle the case when it returned NULL. There was a WARN_ON(!new_page) but it would still proceed to use the NULL pointer and then crash. This case does seem somewhat rare but when the system is under memory pressure it can happen. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: fec: handle page_pool_dev_alloc_pages error The fec_enet_update_cbd function calls page_pool_dev_alloc_pages but did not handle the case when it returned NULL. There was a WARN_ON(!new_page) but it would still proceed to use the NULL pointer and then crash. This case does seem somewhat rare but when the system is under memory pressure it can happen. One case where I can duplicate this with some frequency is when writing over a smbd share to a SATA HDD attached to an imx6q. Setting /proc/sys/vm/min_free_kbytes to higher values also seems to solve the problem for my test case. But it still seems wrong that the fec driver ignores the memory allocation error and can crash. This commit handles the allocation error by dropping the current packet.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.1, < 6.6.74 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.11 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-21676?
How severe is CVE-2025-21676?
How do I fix CVE-2025-21676?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-21670In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21671In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21672In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21673In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21674In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21675In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21677In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21678In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21679In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-2168The Ultimate Store Kit Elementor Addons, Woocommerce Builder…4.3
- CVE-2025-21680In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21681In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-21676?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
