CVE-2021-47612

nfc: fix segfault in nfc_genl_dump_devices_done

MEDIUM
5.5
CVSS Score
Published: June 19, 2024 at 02:58 PM UTC
Updated: June 17, 2026 at 04:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2963.1 ≤ v < 4.14.2593.1 ≤ v < 4.19.2223.1 ≤ v < 4.4.2963.1 ≤ v < 4.9.2943.1 ≤ v < 5.10.873.1 ≤ v < 5.15.103.1 ≤ v < 5.163.1 ≤ v < 5.4.1674.10 ≤ v < 4.14.2594.15 ≤ v < 4.19.2224.20 ≤ v < 5.4.1674.5 ≤ v < 4.9.2945.11 ≤ v < 5.15.105.5 ≤ v < 5.10.873.14d12b8b129f170d0fc3188de1e51a2a1b0f87730
Vendor states this is fixed in 214af18abbe39db05beb305b2d11e87d09a6529c (fixed)
Vendor states this is fixed in 2a8845b9603c545fddd17862282dc4c4ce0971e3 (fixed)
Vendor states this is fixed in 6644989642844de830f9b072cd65c553cb55946c (fixed)
Vendor states this is fixed in c602863ad28ec86794cb4ab4edea5324f555f181 (fixed)
Vendor states this is fixed in d731ecc6f2eaec68f4ad1542283bbc7d07bd0112 (fixed)
Vendor states this is fixed in d89e4211b51752daf063d638af50abed2fd5f96d (fixed)
Vendor states this is fixed in ea55b3797878752aa076b118afb727dcf79cac34 (fixed)
Vendor states this is fixed in fd79a0cbf0b2e34bcc45b13acf962e2032a82203 (fixed)
Vendor states this is fixed in 3.1 (unaffected)
Vendor states this is fixed in 4.14.259 (unaffected)
Vendor states this is fixed in 4.19.222 (unaffected)
Vendor states this is fixed in 4.4.296 (unaffected)
Vendor states this is fixed in 4.9.294 (unaffected)
Vendor states this is fixed in 5.10.87 (unaffected)
Vendor states this is fixed in 5.15.10 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.167 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/214af18abbe39db05beb305b2d11e87d09a6529c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a8845b9603c545fddd17862282dc4c4ce0971e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6644989642844de830f9b072cd65c553cb55946c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c602863ad28ec86794cb4ab4edea5324f555f181
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d731ecc6f2eaec68f4ad1542283bbc7d07bd0112
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d89e4211b51752daf063d638af50abed2fd5f96d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ea55b3797878752aa076b118afb727dcf79cac34
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd79a0cbf0b2e34bcc45b13acf962e2032a82203

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card