# CVE-2021-47612: nfc: fix segfault in nfc\_genl\_dump\_devices\_done

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-19T14:58:01.108Z
- **Modified:** 2026-06-17T04:18:09.797Z

## Who should check

- Anyone running Linux \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< ea55b3797878752aa076b118afb727dcf79cac34; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 214af18abbe39db05beb305b2d11e87d09a6529c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 6644989642844de830f9b072cd65c553cb55946c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 2a8845b9603c545fddd17862282dc4c4ce0971e3; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d731ecc6f2eaec68f4ad1542283bbc7d07bd0112; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< c602863ad28ec86794cb4ab4edea5324f555f181; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d89e4211b51752daf063d638af50abed2fd5f96d; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< fd79a0cbf0b2e34bcc45b13acf962e2032a82203
- Anyone running Linux 3.1

## Description

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

nfc: fix segfault in nfc\_genl\_dump\_devices\_done

When kmalloc in nfc\_genl\_dump\_devices() fails then
nfc\_genl\_dump\_devices\_done() segfaults as below

KASAN: null-ptr-deref in range \[0x0000000000000008-0x000000000000000f\]
CPU: 0 PID: 25 Comm: kworker/0:1 Not tainted 5.16.0-rc4-01180-g2a987e65025e-dirty \#5
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-6.fc35 04/01/2014
Workqueue: events netlink\_sock\_destruct\_work
RIP: 0010:klist\_iter\_exit+0x26/0x80
Call Trace:
\<TASK\>
class\_dev\_iter\_exit+0x15/0x20
nfc\_genl\_dump\_devices\_done+0x3b/0x50
genl\_lock\_done+0x84/0xd0
netlink\_sock\_destruct+0x8f/0x270
\_\_sk\_destruct+0x64/0x3b0
sk\_destruct+0xa8/0xd0
\_\_sk\_free+0x2e8/0x3d0
sk\_free+0x51/0x90
netlink\_sock\_destruct\_work+0x1c/0x20
process\_one\_work+0x411/0x710
worker\_thread+0x6fd/0xa80

## Affected and fixed versions

- Linux: \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< ea55b3797878752aa076b118afb727dcf79cac34; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 214af18abbe39db05beb305b2d11e87d09a6529c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 6644989642844de830f9b072cd65c553cb55946c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 2a8845b9603c545fddd17862282dc4c4ce0971e3; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d731ecc6f2eaec68f4ad1542283bbc7d07bd0112; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< c602863ad28ec86794cb4ab4edea5324f555f181; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d89e4211b51752daf063d638af50abed2fd5f96d; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< fd79a0cbf0b2e34bcc45b13acf962e2032a82203 (cvelist)
- Linux: 3.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47612.md
Affected: Linux >= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, < ea55b3797878752aa076b118afb727dcf79cac34; >= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, < 214af18abbe39db05beb305b2d11e87d09a6529c; >= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, < 6644989642844de830f9b072cd65c553cb55946c; >= 4d12b8b129f170d0fc3188d…
Fixed in: Linux 214af18abbe39db05beb305b2d11e87d09a6529c, Linux 6644989642844de830f9b072cd65c553cb55946c, Linux 2a8845b9603c545fddd17862282dc4c4ce0971e3

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-47612 being exploited?

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

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

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

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

Linux \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< ea55b3797878752aa076b118afb727dcf79cac34; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 214af18abbe39db05beb305b2d11e87d09a6529c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 6644989642844de830f9b072cd65c553cb55946c; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< 2a8845b9603c545fddd17862282dc4c4ce0971e3; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d731ecc6f2eaec68f4ad1542283bbc7d07bd0112; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< c602863ad28ec86794cb4ab4edea5324f555f181; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< d89e4211b51752daf063d638af50abed2fd5f96d; \>= 4d12b8b129f170d0fc3188de1e51a2a1b0f87730, \< fd79a0cbf0b2e34bcc45b13acf962e2032a82203; Linux 3.1.

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

Yes. Fixed in Linux 214af18abbe39db05beb305b2d11e87d09a6529c, Linux 6644989642844de830f9b072cd65c553cb55946c, Linux 2a8845b9603c545fddd17862282dc4c4ce0971e3. No fix listed yet: follow the vendor advisory.

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

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/ea55b3797878752aa076b118afb727dcf79cac34>
- patch: <https://git.kernel.org/stable/c/214af18abbe39db05beb305b2d11e87d09a6529c>
- patch: <https://git.kernel.org/stable/c/6644989642844de830f9b072cd65c553cb55946c>
- patch: <https://git.kernel.org/stable/c/2a8845b9603c545fddd17862282dc4c4ce0971e3>
- patch: <https://git.kernel.org/stable/c/d731ecc6f2eaec68f4ad1542283bbc7d07bd0112>
- patch: <https://git.kernel.org/stable/c/c602863ad28ec86794cb4ab4edea5324f555f181>
- patch: <https://git.kernel.org/stable/c/d89e4211b51752daf063d638af50abed2fd5f96d>
- patch: <https://git.kernel.org/stable/c/fd79a0cbf0b2e34bcc45b13acf962e2032a82203>

## 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-47612>

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