SecurityContext

CVE-2025-21676: Linux Kernel - Null Pointer Dereference

  • Cve: CVE-2025-21676
  • Name: Linux Kernel - Null Pointer Dereference
  • 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.
  • Impact: System can crash or become unstable due to NULL pointer dereference in fec driver during memory allocation failure.
  • Remediation: Update to the latest Linux kernel version where this issue is fixed, or apply the patch that handles the allocation error properly.
  • Vulnerability type: null_pointer_dereference
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.0045
  • Epss percentile: 0.39836
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-01-31T12:15:28Z
  • Age in days: 662
  • Modified at: 2026-11-10T13:17:32Z
  • Patch available: yes
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-21676
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-476NULL Pointer Dereference

References

Same in every row:

  • Source: nvd
UrlTags
https://git.kernel.org/stable/c/001ba0902046cb6c352494df610718c0763e77a5Patch
https://git.kernel.org/stable/c/1425cb829556398f594658512d49292f988a2ab0Patch
https://git.kernel.org/stable/c/8a0097db0544b658c159ac787319737712063a23Patch
https://git.kernel.org/stable/c/eacdcc14f3c8d4c1447565521e792ddb3a67e08d
https://cert-portal.siemens.com/productcert/html/ssa-019113.html
https://cert-portal.siemens.com/productcert/html/ssa-082556.html
https://cert-portal.siemens.com/productcert/html/ssa-457936.html

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.13 rc7; = 6.13 rc1; = 6.13 rc2; = 6.13 rc3; = 6.13 rc4; = 6.13 rc5; = 6.13 rc6; >= 6.7, < 6.12.11; >= 6.1, < 6.6.74nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports