# CVE-2025-38147: calipso: Don't call calipso functions for AF\_INET sk.

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-03T08:35:52.921Z
- **Modified:** 2026-11-05T21:18:11.377Z

## Who should check

- Anyone running Linux \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< fc2da88411470480b8b7e9177e930cedd893cf56; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 0c813dbc851dbf418fdc6dc883fd0592d6c555cd; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 26ce90f1ce60b0ff587de8d6aec399aa55cab28e; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< c32ebe33626335a536dbbdd09571c06dd9bc1729; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 946bfdfcb76ac2bac5b8526447035885ff41c598; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< dd8928897594931d6912ef2f7a43e110b4958d3d; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< e2ec310c7a50271843c585e27ef14e48c66ce649; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 6e9f2df1c550ead7cecb3e450af1105735020c92
- Anyone running Linux 4.8

## Description

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

calipso: Don't call calipso functions for AF\_INET sk.

syzkaller reported a null-ptr-deref in txopt\_get(). \[0\]

The offset 0x70 was of struct ipv6\_txoptions in struct ipv6\_pinfo,
so struct ipv6\_pinfo was NULL there.

However, this never happens for IPv6 sockets as inet\_sk(sk)-\>pinet6
is always set in inet6\_create(), meaning the socket was not IPv6 one.

The root cause is missing validation in netlbl\_conn\_setattr().

netlbl\_conn\_setattr() switches branches based on struct
sockaddr.sa\_family, which is passed from userspace.  However,
netlbl\_conn\_setattr() does not check if the address family matches
the socket.

The syzkaller must have called connect() for an IPv6 address on
an IPv4 socket.

We have a proper validation in tcp\_v\[46\]\_connect(), but
security\_socket\_connect() is called in the earlier stage.

Let's copy the validation to netlbl\_conn\_setattr().

\[0\]:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 \[\#1\] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range \[0x0000000000000070-0x0000000000000077\]
CPU: 2 UID: 0 PID: 12928 Comm: syz.9.1677 Not tainted 6.12.0 \#1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:txopt\_get include/net/ipv6.h:390 \[inline\]
RIP: 0010:
Code: 02 00 00 49 8b ac 24 f8 02 00 00 e8 84 69 2a fd e8 ff 00 16 fd 48 8d 7d 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<80\> 3c 02 00 0f 85 53 02 00 00 48 8b 6d 70 48 85 ed 0f 84 ab 01 00
RSP: 0018:ffff88811b8afc48 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 1ffff11023715f8a RCX: ffffffff841ab00c
RDX: 000000000000000e RSI: ffffc90007d9e000 RDI: 0000000000000070
RBP: 0000000000000000 R08: ffffed1023715f9d R09: ffffed1023715f9e
R10: ffffed1023715f9d R11: 0000000000000003 R12: ffff888123075f00
R13: ffff88810245bd80 R14: ffff888113646780 R15: ffff888100578a80
FS:  00007f9019bd7640(0000) GS:ffff8882d2d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f901b927bac CR3: 0000000104788003 CR4: 0000000000770ef0
PKRU: 80000000
Call Trace:
 \<TASK\>
 calipso\_sock\_setattr+0x56/0x80 net/netlabel/netlabel\_calipso.c:557
 netlbl\_conn\_setattr+0x10c/0x280 net/netlabel/netlabel\_kapi.c:1177
 selinux\_netlbl\_socket\_connect\_helper+0xd3/0x1b0 security/selinux/netlabel.c:569
 selinux\_netlbl\_socket\_connect\_locked security/selinux/netlabel.c:597 \[inline\]
 selinux\_netlbl\_socket\_connect+0xb6/0x100 security/selinux/netlabel.c:615
 selinux\_socket\_connect+0x5f/0x80 security/selinux/hooks.c:4931
 security\_socket\_connect+0x50/0xa0 security/security.c:4598
 \_\_sys\_connect\_file+0xa4/0x190 net/socket.c:2067
 \_\_sys\_connect+0x12c/0x170 net/socket.c:2088
 \_\_do\_sys\_connect net/socket.c:2098 \[inline\]
 \_\_se\_sys\_connect net/socket.c:2095 \[inline\]
 \_\_x64\_sys\_connect+0x73/0xb0 net/socket.c:2095
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xaa/0x1b0 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f901b61a12d
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9019bd6fa8 EFLAGS: 00000246 ORIG\_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f901b925fa0 RCX: 00007f901b61a12d
RDX: 000000000000001c RSI: 0000200000000140 RDI: 0000000000000003
RBP: 00007f901b701505 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f901b5b62a0 R15: 00007f9019bb7000
 \</TASK\>
Modules linked in:

## Affected and fixed versions

- Linux: \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< fc2da88411470480b8b7e9177e930cedd893cf56; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 0c813dbc851dbf418fdc6dc883fd0592d6c555cd; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 26ce90f1ce60b0ff587de8d6aec399aa55cab28e; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< c32ebe33626335a536dbbdd09571c06dd9bc1729; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 946bfdfcb76ac2bac5b8526447035885ff41c598; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< dd8928897594931d6912ef2f7a43e110b4958d3d; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< e2ec310c7a50271843c585e27ef14e48c66ce649; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 6e9f2df1c550ead7cecb3e450af1105735020c92 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 6e9f2df1c550ead7cecb3e450af1105735020c92 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38147. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38147.md
Affected: Linux >= ceba1832b1b2da0149c51de62a847c00bca1677a, < fc2da88411470480b8b7e9177e930cedd893cf56; >= ceba1832b1b2da0149c51de62a847c00bca1677a, < 0c813dbc851dbf418fdc6dc883fd0592d6c555cd; >= ceba1832b1b2da0149c51de62a847c00bca1677a, < 26ce90f1ce60b0ff587de8d6aec399aa55cab28e; >= ceba1832b1b2da0149c51de…
Fixed in: Linux 0c813dbc851dbf418fdc6dc883fd0592d6c555cd, Linux 26ce90f1ce60b0ff587de8d6aec399aa55cab28e, Linux 946bfdfcb76ac2bac5b8526447035885ff41c598, Linux 6e9f2df1c550ead7cecb3e450af1105735020c92

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-2025-38147 being exploited?

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

### How serious is CVE-2025-38147?

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

### Which versions are affected by CVE-2025-38147?

Linux \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< fc2da88411470480b8b7e9177e930cedd893cf56; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 0c813dbc851dbf418fdc6dc883fd0592d6c555cd; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 26ce90f1ce60b0ff587de8d6aec399aa55cab28e; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< c32ebe33626335a536dbbdd09571c06dd9bc1729; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 946bfdfcb76ac2bac5b8526447035885ff41c598; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< dd8928897594931d6912ef2f7a43e110b4958d3d; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< e2ec310c7a50271843c585e27ef14e48c66ce649; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 6e9f2df1c550ead7cecb3e450af1105735020c92; Linux 4.8.

### Is there a fix for CVE-2025-38147?

Yes. Fixed in Linux 0c813dbc851dbf418fdc6dc883fd0592d6c555cd, Linux 26ce90f1ce60b0ff587de8d6aec399aa55cab28e, Linux 946bfdfcb76ac2bac5b8526447035885ff41c598, Linux 6e9f2df1c550ead7cecb3e450af1105735020c92. Upgrade Linux to 6e9f2df1c550ead7cecb3e450af1105735020c92 or later.

### How do I check if I'm affected by CVE-2025-38147?

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/fc2da88411470480b8b7e9177e930cedd893cf56>
- patch: <https://git.kernel.org/stable/c/0c813dbc851dbf418fdc6dc883fd0592d6c555cd>
- patch: <https://git.kernel.org/stable/c/26ce90f1ce60b0ff587de8d6aec399aa55cab28e>
- patch: <https://git.kernel.org/stable/c/c32ebe33626335a536dbbdd09571c06dd9bc1729>
- patch: <https://git.kernel.org/stable/c/946bfdfcb76ac2bac5b8526447035885ff41c598>
- patch: <https://git.kernel.org/stable/c/dd8928897594931d6912ef2f7a43e110b4958d3d>
- patch: <https://git.kernel.org/stable/c/e2ec310c7a50271843c585e27ef14e48c66ce649>
- patch: <https://git.kernel.org/stable/c/6e9f2df1c550ead7cecb3e450af1105735020c92>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.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-2025-38147>

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