# CVE-2021-47250: net: ipv4: fix memory leak in netlbl\_cipsov4\_add\_std

> 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-401
- **Published:** 2024-05-21T14:19:46.886Z
- **Modified:** 2026-06-17T04:17:00.867Z

## Who should check

- Anyone running Linux \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 212166510582631994be4f4b3fe15e10a03c1dd4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 086e92b1d68c6338535f715aad173f8cf4bfbc8c; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 6dcea66d3bb519b426282588f38e884e07893c1f; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 5340858147e3dc60913fb3dd0cbb758ec4a26e66; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 398a24447eb60f060c8994221cb5ae6caf355fa1; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< deeeb65c6ee404f2d1fb80b38b2730645c0f4663; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 0ffb460be3abac86f884a8c548bb02724ec370f4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< d612c3f3fae221e7ea736d196581c2217304bbbc
- Anyone running Linux 2.6.19

## 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 and fixed versions

- Linux: \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 212166510582631994be4f4b3fe15e10a03c1dd4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 086e92b1d68c6338535f715aad173f8cf4bfbc8c; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 6dcea66d3bb519b426282588f38e884e07893c1f; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 5340858147e3dc60913fb3dd0cbb758ec4a26e66; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 398a24447eb60f060c8994221cb5ae6caf355fa1; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< deeeb65c6ee404f2d1fb80b38b2730645c0f4663; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 0ffb460be3abac86f884a8c548bb02724ec370f4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< d612c3f3fae221e7ea736d196581c2217304bbbc (cvelist)
- Linux: 2.6.19 (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-47250. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47250.md
Affected: Linux >= 96cb8e3313c7a12e026c1ed510522ae6f6023875, < 212166510582631994be4f4b3fe15e10a03c1dd4; >= 96cb8e3313c7a12e026c1ed510522ae6f6023875, < 086e92b1d68c6338535f715aad173f8cf4bfbc8c; >= 96cb8e3313c7a12e026c1ed510522ae6f6023875, < 6dcea66d3bb519b426282588f38e884e07893c1f; >= 96cb8e3313c7a12e026c1ed…
Fixed in: Linux 212166510582631994be4f4b3fe15e10a03c1dd4, Linux 086e92b1d68c6338535f715aad173f8cf4bfbc8c, Linux 6dcea66d3bb519b426282588f38e884e07893c1f, Linux 5340858147e3dc60913fb3dd0cbb758ec4a26e66, Linux 398a24447eb60f060c8994221cb5ae6caf355fa1, Linux 0ffb460be3abac86f884a8c548bb02724ec370f4

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

There is no confirmed exploitation: CVE-2021-47250 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-47250?

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

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

Linux \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 212166510582631994be4f4b3fe15e10a03c1dd4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 086e92b1d68c6338535f715aad173f8cf4bfbc8c; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 6dcea66d3bb519b426282588f38e884e07893c1f; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 5340858147e3dc60913fb3dd0cbb758ec4a26e66; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 398a24447eb60f060c8994221cb5ae6caf355fa1; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< deeeb65c6ee404f2d1fb80b38b2730645c0f4663; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< 0ffb460be3abac86f884a8c548bb02724ec370f4; \>= 96cb8e3313c7a12e026c1ed510522ae6f6023875, \< d612c3f3fae221e7ea736d196581c2217304bbbc; Linux 2.6.19.

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

Yes. Fixed in Linux 212166510582631994be4f4b3fe15e10a03c1dd4, Linux 086e92b1d68c6338535f715aad173f8cf4bfbc8c, Linux 6dcea66d3bb519b426282588f38e884e07893c1f, Linux 5340858147e3dc60913fb3dd0cbb758ec4a26e66, Linux 398a24447eb60f060c8994221cb5ae6caf355fa1, Linux 0ffb460be3abac86f884a8c548bb02724ec370f4. No fix listed yet: follow the vendor advisory.

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

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/212166510582631994be4f4b3fe15e10a03c1dd4>
- patch: <https://git.kernel.org/stable/c/086e92b1d68c6338535f715aad173f8cf4bfbc8c>
- patch: <https://git.kernel.org/stable/c/6dcea66d3bb519b426282588f38e884e07893c1f>
- patch: <https://git.kernel.org/stable/c/5340858147e3dc60913fb3dd0cbb758ec4a26e66>
- patch: <https://git.kernel.org/stable/c/398a24447eb60f060c8994221cb5ae6caf355fa1>
- patch: <https://git.kernel.org/stable/c/deeeb65c6ee404f2d1fb80b38b2730645c0f4663>
- patch: <https://git.kernel.org/stable/c/0ffb460be3abac86f884a8c548bb02724ec370f4>
- patch: <https://git.kernel.org/stable/c/d612c3f3fae221e7ea736d196581c2217304bbbc>

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

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