# CVE-2023-52698: calipso: fix memory leak in netlbl\_calipso\_add\_pass()

> 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.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-17T14:27:29.885Z
- **Modified:** 2026-06-17T06:43:22.280Z

## Who should check

- Anyone running Linux \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 36e19f84634aaa94f543fedc0a07588949638d53; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 44a88650ba55e6a7f2ec485d2c2413ba7e216f01; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< a4529a08d3704c17ea9c7277d180e46b99250ded; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 321b3a5592c8a9d6b654c7c64833ea67dbb33149; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 408bbd1e1746fe33e51f4c81c2febd7d3841d031; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< f14d36e6e97fe935a20e0ceb159c100f90b6627c; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< ec4e9d630a64df500641892f4e259e8149594a99
- Anyone running Linux 4.8

## Description

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

calipso: fix memory leak in netlbl\_calipso\_add\_pass()

If IPv6 support is disabled at boot (ipv6.disable=1),
the calipso\_init() -\> netlbl\_calipso\_ops\_register() function isn't called,
and the netlbl\_calipso\_ops\_get() function always returns NULL.
In this case, the netlbl\_calipso\_add\_pass() function allocates memory
for the doi\_def variable but doesn't free it with the calipso\_doi\_free().

BUG: memory leak
unreferenced object 0xffff888011d68180 (size 64):
  comm "syz-executor.1", pid 10746, jiffies 4295410986 (age 17.928s)
  hex dump (first 32 bytes):
    00 00 00 00 02 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:
    \[\<...\>\] kmalloc include/linux/slab.h:552 \[inline\]
    \[\<...\>\] netlbl\_calipso\_add\_pass net/netlabel/netlabel\_calipso.c:76 \[inline\]
    \[\<...\>\] netlbl\_calipso\_add+0x22e/0x4f0 net/netlabel/netlabel\_calipso.c:111
    \[\<...\>\] genl\_family\_rcv\_msg\_doit+0x22f/0x330 net/netlink/genetlink.c:739
    \[\<...\>\] genl\_family\_rcv\_msg net/netlink/genetlink.c:783 \[inline\]
    \[\<...\>\] genl\_rcv\_msg+0x341/0x5a0 net/netlink/genetlink.c:800
    \[\<...\>\] netlink\_rcv\_skb+0x14d/0x440 net/netlink/af\_netlink.c:2515
    \[\<...\>\] genl\_rcv+0x29/0x40 net/netlink/genetlink.c:811
    \[\<...\>\] netlink\_unicast\_kernel net/netlink/af\_netlink.c:1313 \[inline\]
    \[\<...\>\] netlink\_unicast+0x54b/0x800 net/netlink/af\_netlink.c:1339
    \[\<...\>\] netlink\_sendmsg+0x90a/0xdf0 net/netlink/af\_netlink.c:1934
    \[\<...\>\] sock\_sendmsg\_nosec net/socket.c:651 \[inline\]
    \[\<...\>\] sock\_sendmsg+0x157/0x190 net/socket.c:671
    \[\<...\>\] \_\_\_\_sys\_sendmsg+0x712/0x870 net/socket.c:2342
    \[\<...\>\] \_\_\_sys\_sendmsg+0xf8/0x170 net/socket.c:2396
    \[\<...\>\] \_\_sys\_sendmsg+0xea/0x1b0 net/socket.c:2429
    \[\<...\>\] do\_syscall\_64+0x30/0x40 arch/x86/entry/common.c:46
    \[\<...\>\] entry\_SYSCALL\_64\_after\_hwframe+0x61/0xc6

Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with Syzkaller

\[PM: merged via the LSM tree at Jakub Kicinski request\]

## Affected and fixed versions

- Linux: \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 36e19f84634aaa94f543fedc0a07588949638d53; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 44a88650ba55e6a7f2ec485d2c2413ba7e216f01; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< a4529a08d3704c17ea9c7277d180e46b99250ded; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 321b3a5592c8a9d6b654c7c64833ea67dbb33149; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 408bbd1e1746fe33e51f4c81c2febd7d3841d031; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< f14d36e6e97fe935a20e0ceb159c100f90b6627c; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< ec4e9d630a64df500641892f4e259e8149594a99 (cvelist)
- Linux: 4.8 (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-2023-52698. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52698.md
Affected: Linux >= cb72d38211eacda2dd90b09540542b6582da614e, < 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da; >= cb72d38211eacda2dd90b09540542b6582da614e, < 36e19f84634aaa94f543fedc0a07588949638d53; >= cb72d38211eacda2dd90b09540542b6582da614e, < 44a88650ba55e6a7f2ec485d2c2413ba7e216f01; >= cb72d38211eacda2dd90b09…
Fixed in: Linux 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da, Linux 36e19f84634aaa94f543fedc0a07588949638d53, Linux 44a88650ba55e6a7f2ec485d2c2413ba7e216f01, Linux 321b3a5592c8a9d6b654c7c64833ea67dbb33149, Linux 408bbd1e1746fe33e51f4c81c2febd7d3841d031

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-2023-52698 being exploited?

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

### How serious is CVE-2023-52698?

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

### Which versions are affected by CVE-2023-52698?

Linux \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 36e19f84634aaa94f543fedc0a07588949638d53; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 44a88650ba55e6a7f2ec485d2c2413ba7e216f01; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< a4529a08d3704c17ea9c7277d180e46b99250ded; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 321b3a5592c8a9d6b654c7c64833ea67dbb33149; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< 408bbd1e1746fe33e51f4c81c2febd7d3841d031; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< f14d36e6e97fe935a20e0ceb159c100f90b6627c; \>= cb72d38211eacda2dd90b09540542b6582da614e, \< ec4e9d630a64df500641892f4e259e8149594a99; Linux 4.8.

### Is there a fix for CVE-2023-52698?

Yes. Fixed in Linux 9a8f811a146aa2a0230f8edb2e9f4b6609aab8da, Linux 36e19f84634aaa94f543fedc0a07588949638d53, Linux 44a88650ba55e6a7f2ec485d2c2413ba7e216f01, Linux 321b3a5592c8a9d6b654c7c64833ea67dbb33149, Linux 408bbd1e1746fe33e51f4c81c2febd7d3841d031. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52698?

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/9a8f811a146aa2a0230f8edb2e9f4b6609aab8da>
- patch: <https://git.kernel.org/stable/c/36e19f84634aaa94f543fedc0a07588949638d53>
- patch: <https://git.kernel.org/stable/c/44a88650ba55e6a7f2ec485d2c2413ba7e216f01>
- patch: <https://git.kernel.org/stable/c/a4529a08d3704c17ea9c7277d180e46b99250ded>
- patch: <https://git.kernel.org/stable/c/321b3a5592c8a9d6b654c7c64833ea67dbb33149>
- patch: <https://git.kernel.org/stable/c/408bbd1e1746fe33e51f4c81c2febd7d3841d031>
- patch: <https://git.kernel.org/stable/c/f14d36e6e97fe935a20e0ceb159c100f90b6627c>
- patch: <https://git.kernel.org/stable/c/ec4e9d630a64df500641892f4e259e8149594a99>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## 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-2023-52698>

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