CVE-2021-46924

NFC: st21nfca: Fix memory leak in device probe and remove

MEDIUM
5.5
CVSS Score
Published: February 27, 2024 at 09:43 AM UTC
Updated: June 17, 2026 at 04:15 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: st21nfca: Fix memory leak in device probe and remove 'phy->pending_skb' is alloced when device probe, but forgot to free in the error handling path and remove path, this cause memory leak as follows: unreferenced object 0xffff88800bc06800 (size 512): comm "8", pid 11775, jiffies 4295159829 (age 9.032s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000d66c09ce>] __kmalloc_node_track_caller+0x1ed/0x450 [<00000000c93382b3>] kmalloc_reserve+0x37/0xd0 [<000000005fea522c>] __alloc_skb+0x124/0x380 [<0000000019f29f9a>] st21nfca_hci_i2c_probe+0x170/0x8f2 Fix it by freeing 'pending_skb' in error and remove.

Affected

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

3.16 ≤ v < 4.14.2613.16 ≤ v < 4.19.2243.16 ≤ v < 5.10.903.16 ≤ v < 5.15.133.16 ≤ v < 5.163.16 ≤ v < 5.4.1703.16.0 ≤ v < 4.14.2614.15.0 ≤ v < 4.19.2244.20.0 ≤ v < 5.4.1705.11.0 ≤ v < 5.15.135.5.0 ≤ v < 5.10.903.1668957303f44a501af5cf37913208a2acaa6bcdf1
Vendor states this is fixed in 1b9dadba502234eea7244879b8d5d126bfaf9f0c (fixed)
Vendor states this is fixed in 1cd4063dbc91cf7965d73a6a3855e2028cd4613b (fixed)
Vendor states this is fixed in 238920381b8925d070d32d73cd9ce52ab29896fe (fixed)
Vendor states this is fixed in 38c3e320e7ff46f2dc67bc5045333e63d9f8918d (fixed)
Vendor states this is fixed in a1e0080a35a16ce3808f7040fe0c3a8fdb052349 (fixed)
Vendor states this is fixed in e553265ea56482da5700f56319fda9ff53e7dcb4 (fixed)
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 4.14.261 (unaffected)
Vendor states this is fixed in 4.19.224 (unaffected)
Vendor states this is fixed in 5.10.90 (unaffected)
Vendor states this is fixed in 5.15.13 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.170 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b9dadba502234eea7244879b8d5d126bfaf9f0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1cd4063dbc91cf7965d73a6a3855e2028cd4613b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/238920381b8925d070d32d73cd9ce52ab29896fe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/38c3e320e7ff46f2dc67bc5045333e63d9f8918d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a1e0080a35a16ce3808f7040fe0c3a8fdb052349
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e553265ea56482da5700f56319fda9ff53e7dcb4

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-401

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