Quick answers
- Is CVE-2021-47002 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2021-47002 being exploited in the wild.
- How severe is CVE-2021-47002?
- Medium severity, with a CVSS score of 5.5, published 28 February 2024.
- Which products and versions are affected?
- Linux Kernel up to 5.10.221, 5.11 to 5.11.22, 5.12 to 5.12.5; Siemens SIMATIC S7-1500 TM MFP All versions using affected Linux subsystem.
- Is there a fix for CVE-2021-47002?
- A patch was published on 2021-04-23: Initial fix committed to Linux kernel mainline Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2021-47002 attacked?
- It is attacked with local access, in an operating system.
- Am I affected by CVE-2021-47002?
- Check whether you run Linux Kernel or Siemens SIMATIC S7-1500 TM MFP at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A NULL pointer dereference exists in the SUNRPC subsystem of the Linux kernel within the svc_rqst_free() function. The vulnerability occurs when alloc_pages_node() fails and returns NULL in svc_rqst_alloc(), leaving the rq_scratch_page pointer uninitialized. Subsequent calls to put_page() during the cleanup process in svc_rqst_free() do not verify if the pointer is NULL before dereferencing it. A local attacker can exploit this to trigger a kernel panic (denial-of-service). The issue has been resolved in various stable kernel branches (5.10.221, 5.11.22, 5.12.5) by adding a mandatory NULL check before the put_page() call.
Affected products
- Linux Linux Kernel up to 5.10.221, 5.11 to 5.11.22, 5.12 to 5.12.5
- Siemens SIMATIC S7-1500 TM MFP All versions using affected Linux subsystem
Timeline
- 2021-04-23: patched: Initial fix committed to Linux kernel mainline
- 2024-02-28: advisory: CVE published by kernel.org
- 2024-04-09: advisory: Siemens published advisory SSA-265688 covering affected industrial products
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://cert-portal.siemens.com/productcert/html/ssa-265688.html