CVE-2025-21676: net: fec: handle page_pool_dev_alloc_pages error

Published Jan 31, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: fec: handle pagepooldevallocpages error

The fecenetupdatecbd function calls pagepooldevallocpages but did not handle the case when it returned NULL. There was a WARNON(!newpage) 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/minfreekbytes 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.

Affected Software

11 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.1<6.6.74
Linux Linux kernel>=6.7<6.12.11
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6
Linux Linux kernel=6.13-rc7
debian/linux<=6.1.129-1, <=6.1.135-1
5.10.223-15.10.234-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.12.27-1

Event History

Jan 31, 2025
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 1, 2025
Data Sourced
via Ubuntu·02:33 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-21676?

CVE-2025-21676 has not been assigned a severity rating, but it affects kernel functionality which can lead to potential denial of service.

2

How do I fix CVE-2025-21676?

To fix CVE-2025-21676, update your Linux kernel to the latest version that includes the patch addressing this vulnerability.

3

What causes CVE-2025-21676 in the Linux kernel?

CVE-2025-21676 is caused by an error handling oversight in the fec_enet_update_cbd function that does not properly handle a NULL return from page_pool_dev_alloc_pages.

4

Which versions of the Linux kernel are affected by CVE-2025-21676?

CVE-2025-21676 affects certain versions of the Linux kernel, specifically those using the fec_enet driver.

5

Is CVE-2025-21676 exploitable remotely?

CVE-2025-21676 is not known to be remotely exploitable but could be leveraged in systems with local access to cause issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203