What’s Vulnerable › Vulnerabilities
CVE-2021-47002: SUNRPC: Fix null pointer dereference in svc_rqst_free()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-28 · updated 2026-10-14
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix null pointer dereference in svc_rqst_free() When alloc_pages_node() returns null in svc_rqst_alloc(), the null rq_scratch_page pointer will be dereferenced when calling put_page() in svc_rqst_free(). Fix it by adding a null check. Addresses-Coverity: ("Dereference after null check")
Affected products
- Linux kernel: before 5.10.221; from 5.11 before 5.11.22; from 5.12 before 5.12.5 — fixed in 5.10.221, 5.11.22, 5.12.5
How to fix
Upgrade to a fixed version: Linux kernel 5.10.221, 5.11.22, 5.12.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1e10f58f1c9a6b667b045513c7a4e6111c24fe7c
- https://git.kernel.org/stable/c/3de81c1e84bf84803308da3272a829a7655c5336
- https://git.kernel.org/stable/c/b9f83ffaa0c096b4c832a43964fe6bff3acffe10
- https://git.kernel.org/stable/c/c664aaec9aee544538a78ba4893a44bc73a6d742
- https://git.kernel.org/stable/c/1e10f58f1c9a6b667b045513c7a4e6111c24fe7c
- https://git.kernel.org/stable/c/3de81c1e84bf84803308da3272a829a7655c5336
- https://git.kernel.org/stable/c/b9f83ffaa0c096b4c832a43964fe6bff3acffe10
- https://git.kernel.org/stable/c/c664aaec9aee544538a78ba4893a44bc73a6d742
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
Get alerted when CVE-2021-47002 or the next vulnerability affects your stack