# CVE-2021-47002: SUNRPC: Fix null pointer dereference in svc_rqst_free()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2024-02-28T08:13:24.091Z
- Modified: 2026-10-14T13:17:13.247Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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")

(As written by CVE List.)

## Affected

- Linux Linux: from 79e4e0d489c8e72b9efa388e504a036eec1550c6 before 3de81c1e84bf84803308da3272a829a7655c5336; from 5191955d6fc65e6d4efe8f4f10a6028298f57281 before 1e10f58f1c9a6b667b045513c7a4e6111c24fe7c; from 5191955d6fc65e6d4efe8f4f10a6028298f57281 before c664aaec9aee544538a78ba4893a44bc73a6d742; from 5191955d6fc65e6d4efe8f4f10a6028298f57281 before b9f83ffaa0c096b4c832a43964fe6bff3acffe10; from 5.10.220 before 5.10.221; 5.11 (not affected: before 5.11; from 5.10.221 up to 5.10.*; from 5.11.22 up to 5.11.*; from 5.12.5 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: before 5.10.221; from 5.11 before 5.11.22; from 5.12 before 5.12.5

## References

- <https://git.kernel.org/stable/c/3de81c1e84bf84803308da3272a829a7655c5336> (patch)
- <https://git.kernel.org/stable/c/1e10f58f1c9a6b667b045513c7a4e6111c24fe7c> (patch)
- <https://git.kernel.org/stable/c/c664aaec9aee544538a78ba4893a44bc73a6d742> (patch)
- <https://git.kernel.org/stable/c/b9f83ffaa0c096b4c832a43964fe6bff3acffe10> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2021-47002](https://www.cve.org/CVERecord?id=CVE-2021-47002), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2021-47002](https://nvd.nist.gov/vuln/detail/CVE-2021-47002), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-47002 · Whole record: https://cve.day/CVE-2021-47002.json · Rebuilt by cve.day 2026-11-25T22:58:08.610Z
