# CVE-2021-47463: mm/secretmem: fix NULL page-\>mapping dereference in page\_is\_secretmem()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-22T06:23:23.688Z
- **Modified:** 2026-06-17T04:17:31.997Z

## Who should check

- Anyone running Linux \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< b77ba1e02345bafd703f0d407bdbd88c3be1f767; \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< 79f9bc5843142b649575f887dccdf1c07ad75c20
- Anyone running Linux 5.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/secretmem: fix NULL page-\>mapping dereference in page\_is\_secretmem()

Check for a NULL page-\>mapping before dereferencing the mapping in
page\_is\_secretmem(), as the page's mapping can be nullified while gup()
is running, e.g.  by reclaim or truncation.

  BUG: kernel NULL pointer dereference, address: 0000000000000068
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 0 P4D 0
  Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
  CPU: 6 PID: 4173897 Comm: CPU 3/KVM Tainted: G        W
  RIP: 0010:internal\_get\_user\_pages\_fast+0x621/0x9d0
  Code: \<48\> 81 7a 68 80 08 04 bc 0f 85 21 ff ff 8 89 c7 be
  RSP: 0018:ffffaa90087679b0 EFLAGS: 00010046
  RAX: ffffe3f37905b900 RBX: 00007f2dd561e000 RCX: ffffe3f37905b934
  RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffe3f37905b900
  ...
  CR2: 0000000000000068 CR3: 00000004c5898003 CR4: 00000000001726e0
  Call Trace:
   get\_user\_pages\_fast\_only+0x13/0x20
   hva\_to\_pfn+0xa9/0x3e0
   try\_async\_pf+0xa1/0x270
   direct\_page\_fault+0x113/0xad0
   kvm\_mmu\_page\_fault+0x69/0x680
   vmx\_handle\_exit+0xe1/0x5d0
   kvm\_arch\_vcpu\_ioctl\_run+0xd81/0x1c70
   kvm\_vcpu\_ioctl+0x267/0x670
   \_\_x64\_sys\_ioctl+0x83/0xa0
   do\_syscall\_64+0x56/0x80
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< b77ba1e02345bafd703f0d407bdbd88c3be1f767; \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< 79f9bc5843142b649575f887dccdf1c07ad75c20 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 79f9bc5843142b649575f887dccdf1c07ad75c20 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47463. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47463.md
Affected: Linux >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < b77ba1e02345bafd703f0d407bdbd88c3be1f767; >= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 79f9bc5843142b649575f887dccdf1c07ad75c20; Linux 5.14
Fixed in: Linux 79f9bc5843142b649575f887dccdf1c07ad75c20

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47463 being exploited?

There is no confirmed exploitation: CVE-2021-47463 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47463?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47463?

Linux \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< b77ba1e02345bafd703f0d407bdbd88c3be1f767; \>= 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, \< 79f9bc5843142b649575f887dccdf1c07ad75c20; Linux 5.14.

### Is there a fix for CVE-2021-47463?

Yes. Fixed in Linux 79f9bc5843142b649575f887dccdf1c07ad75c20. Upgrade Linux to 79f9bc5843142b649575f887dccdf1c07ad75c20 or later.

### How do I check if I'm affected by CVE-2021-47463?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b77ba1e02345bafd703f0d407bdbd88c3be1f767>
- patch: <https://git.kernel.org/stable/c/79f9bc5843142b649575f887dccdf1c07ad75c20>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47463>

HTML: <https://flawdb.com/CVE-2021-47463> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47463>
