---
id: CVE-2021-47002
title: |-
  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…
summary: |-
  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…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 5.10.221
  - 'linux_kernel >= 5.11, < 5.11.22'
  - 'linux_kernel >= 5.12, < 5.12.5'
patched:
  - linux_kernel 5.12.5
published: '2024-02-28'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:17:13.247'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-47002'
references:
  - url: 'https://git.kernel.org/stable/c/1e10f58f1c9a6b667b045513c7a4e6111c24fe7c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3de81c1e84bf84803308da3272a829a7655c5336'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b9f83ffaa0c096b4c832a43964fe6bff3acffe10'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c664aaec9aee544538a78ba4893a44bc73a6d742'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1e10f58f1c9a6b667b045513c7a4e6111c24fe7c'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/3de81c1e84bf84803308da3272a829a7655c5336'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/b9f83ffaa0c096b4c832a43964fe6bff3acffe10'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c664aaec9aee544538a78ba4893a44bc73a6d742'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00236
epssPercentile: 0.14449
ingestedAt: '2026-10-14T13:30:58.419Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-02-28T20:23:02.003410Z'
---

## Overview

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

- `linux_kernel < 5.10.221`
- `linux_kernel >= 5.11, < 5.11.22`
- `linux_kernel >= 5.12, < 5.12.5`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.12.5`
