CVE-2021-47250

net: ipv4: fix memory leak in netlbl_cipsov4_add_std

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:19 PM UTC
Updated: June 17, 2026 at 04:17 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: net: ipv4: fix memory leak in netlbl_cipsov4_add_std Reported by syzkaller: BUG: memory leak unreferenced object 0xffff888105df7000 (size 64): comm "syz-executor842", pid 360, jiffies 4294824824 (age 22.546s) 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: [<00000000e67ed558>] kmalloc include/linux/slab.h:590 [inline] [<00000000e67ed558>] kzalloc include/linux/slab.h:720 [inline] [<00000000e67ed558>] netlbl_cipsov4_add_std net/netlabel/netlabel_cipso_v4.c:145 [inline] [<00000000e67ed558>] netlbl_cipsov4_add+0x390/0x2340 net/netlabel/netlabel_cipso_v4.c:416 [<0000000006040154>] genl_family_rcv_msg_doit.isra.0+0x20e/0x320 net/netlink/genetlink.c:739 [<00000000204d7a1c>] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] [<00000000204d7a1c>] genl_rcv_msg+0x2bf/0x4f0 net/netlink/genetlink.c:800 [<00000000c0d6a995>] netlink_rcv_skb+0x134/0x3d0 net/netlink/af_netlink.c:2504 [<00000000d78b9d2c>] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 [<000000009733081b>] netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] [<000000009733081b>] netlink_unicast+0x4a0/0x6a0 net/netlink/af_netlink.c:1340 [<00000000d5fd43b8>] netlink_sendmsg+0x789/0xc70 net/netlink/af_netlink.c:1929 [<000000000a2d1e40>] sock_sendmsg_nosec net/socket.c:654 [inline] [<000000000a2d1e40>] sock_sendmsg+0x139/0x170 net/socket.c:674 [<00000000321d1969>] ____sys_sendmsg+0x658/0x7d0 net/socket.c:2350 [<00000000964e16bc>] ___sys_sendmsg+0xf8/0x170 net/socket.c:2404 [<000000001615e288>] __sys_sendmsg+0xd3/0x190 net/socket.c:2433 [<000000004ee8b6a5>] do_syscall_64+0x37/0x90 arch/x86/entry/common.c:47 [<00000000171c7cee>] entry_SYSCALL_64_after_hwframe+0x44/0xae The memory of doi_def->map.std pointing is allocated in netlbl_cipsov4_add_std, but no place has freed it. It should be freed in cipso_v4_doi_free which frees the cipso DOI resource.

Affected

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

2.6.19 ≤ v < 4.14.2382.6.19 ≤ v < 4.19.1962.6.19 ≤ v < 4.4.2742.6.19 ≤ v < 4.9.2742.6.19 ≤ v < 5.10.462.6.19 ≤ v < 5.12.132.6.19 ≤ v < 5.132.6.19 ≤ v < 5.4.1284.10 ≤ v < 4.14.2384.15 ≤ v < 4.19.1964.20 ≤ v < 5.4.1284.5 ≤ v < 4.9.2745.11 ≤ v < 5.12.135.5 ≤ v < 5.10.465.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55.13 rc696cb8e3313c7a12e026c1ed510522ae6f6023875
Vendor states this is fixed in 086e92b1d68c6338535f715aad173f8cf4bfbc8c (fixed)
Vendor states this is fixed in 0ffb460be3abac86f884a8c548bb02724ec370f4 (fixed)
Vendor states this is fixed in 212166510582631994be4f4b3fe15e10a03c1dd4 (fixed)
Vendor states this is fixed in 398a24447eb60f060c8994221cb5ae6caf355fa1 (fixed)
Vendor states this is fixed in 5340858147e3dc60913fb3dd0cbb758ec4a26e66 (fixed)
Vendor states this is fixed in 6dcea66d3bb519b426282588f38e884e07893c1f (fixed)
Vendor states this is fixed in d612c3f3fae221e7ea736d196581c2217304bbbc (fixed)
Vendor states this is fixed in deeeb65c6ee404f2d1fb80b38b2730645c0f4663 (fixed)
Vendor states this is fixed in 2.6.19 (unaffected)
Vendor states this is fixed in 4.14.238 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 4.4.274 (unaffected)
Vendor states this is fixed in 4.9.274 (unaffected)
Vendor states this is fixed in 5.10.46 (unaffected)
Vendor states this is fixed in 5.12.13 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.128 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/086e92b1d68c6338535f715aad173f8cf4bfbc8c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ffb460be3abac86f884a8c548bb02724ec370f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/212166510582631994be4f4b3fe15e10a03c1dd4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/398a24447eb60f060c8994221cb5ae6caf355fa1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5340858147e3dc60913fb3dd0cbb758ec4a26e66
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6dcea66d3bb519b426282588f38e884e07893c1f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d612c3f3fae221e7ea736d196581c2217304bbbc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/deeeb65c6ee404f2d1fb80b38b2730645c0f4663

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

StatusANALYZED
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