Skip to content
Fencer Intel
medium 5.5

CVE-2025-38147 json

calipso: Don't call calipso functions for AF_INET sk.

published last yr. modified 4d ago also EUVD-2025-19796

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 13%
public exploits
0
none known

Summary

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:

Patch / fix

  • Linux Linux 5.4.295, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, 6.16
  • linux Debian 12 6.1.147-1
  • linux Debian 14, Debian 13 6.12.35-1

debian advisories DEBIAN-CVE-2025-38147

  • linux Ubuntu 22.04 LTS 5.15.0-156.166
  • linux Ubuntu 24.04 LTS 6.8.0-100.100
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1092.99
  • linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1092.101
  • linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
  • linux-gke Ubuntu 22.04 LTS 5.15.0-1089.95
  • linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48

ubuntu advisories UBUNTU-CVE-2025-38147

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.49.1
  • kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.49.1
  • kernel-rt_debug Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.49.1
  • kernel-source-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.49.1
  • kernel-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.11.1
  • kernel-syms-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.11.1
  • kernel-source-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.20.11.1
  • kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.11.1

suse advisories SUSE-SU-2025:03023-1SUSE-SU-2025:03011-1SUSE-SU-2025:02997-1SUSE-SU-2025:02996-1SUSE-SU-2025:20586-1SUSE-SU-2025:20602-1

  • kernel AlmaLinux 9 5.14.0-687.60.1.el9_8
  • rv AlmaLinux 9 5.14.0-687.60.1.el9_8
  • perf AlmaLinux 9 5.14.0-687.60.1.el9_8
  • rtla AlmaLinux 9 5.14.0-687.60.1.el9_8
  • libperf AlmaLinux 9 5.14.0-687.60.1.el9_8
  • kernel-rt AlmaLinux 9 5.14.0-687.60.1.el9_8
  • kernel-64k AlmaLinux 9 5.14.0-687.60.1.el9_8
  • kernel-core AlmaLinux 9 5.14.0-687.60.1.el9_8

almalinux advisories ALSA-2026:87805ALSA-2026:88477

  • kernel Rocky Linux 10 6.12.0-211.68.1.el10_2
  • kernel Rocky Linux 9 5.14.0-687.60.1.el9_8

rocky linux advisories RLSA-2026:88477RLSA-2026:87805

  • kernel Azure Linux 3.0 6.6.96.1-1

azure linux advisories AZL-64526

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2025-38147 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-38147 updated cvss 5.5

kernel: calipso: Don't call calipso functions for AF_INET sk.

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 more
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux kernel-modules-internal 6.12.0-211.68.1.el10_2
    fixed: vendor fix RHSA-2026:88477
  • Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-687.60.1.el9_8, perf 5.14.0-687.60.1.el9_8, rtla 5.14.0-687.60.1.el9_8, python3-perf 5.14.0-687.60.1.el9_8, kernel-devel-matched 5.14.0-687.60.1.el9_8, kernel-64k-devel-matched 5.14.0-687.60.1.el9_8, +7 more
    fixed: vendor fix RHSA-2026:87805
  • Red Hat Enterprise Linux AppStream (v. 10) rv 6.12.0-211.68.1.el10_2, perf 6.12.0-211.68.1.el10_2, rtla 6.12.0-211.68.1.el10_2, python3-perf 6.12.0-211.68.1.el10_2, kernel-devel-matched 6.12.0-211.68.1.el10_2, kernel-64k-devel-matched 6.12.0-211.68.1.el10_2, +7 more
    fixed: vendor fix RHSA-2026:88477
  • Red Hat Enterprise Linux BaseOS (v. 9) kernel 5.14.0-687.60.1.el9_8, kernel-64k 5.14.0-687.60.1.el9_8, kernel-core 5.14.0-687.60.1.el9_8, kernel-tools 5.14.0-687.60.1.el9_8, kernel-modules 5.14.0-687.60.1.el9_8, kernel-64k-core 5.14.0-687.60.1.el9_8, +27 more
    fixed: vendor fix RHSA-2026:87805
  • Red Hat Enterprise Linux BaseOS (v. 10) kernel 6.12.0-211.68.1.el10_2, kernel-64k 6.12.0-211.68.1.el10_2, kernel-core 6.12.0-211.68.1.el10_2, kernel-tools 6.12.0-211.68.1.el10_2, kernel-modules 6.12.0-211.68.1.el10_2, kernel-64k-core 6.12.0-211.68.1.el10_2, +28 more
    fixed: vendor fix RHSA-2026:88477
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) libperf 5.14.0-687.60.1.el9_8, kernel-debuginfo-common-s390x 5.14.0-687.60.1.el9_8, kernel-debuginfo-common-x86_64 5.14.0-687.60.1.el9_8, kernel-debuginfo-common-aarch64 5.14.0-687.60.1.el9_8, kernel-debuginfo-common-ppc64le 5.14.0-687.60.1.el9_8
    fixed: vendor fix RHSA-2026:87805
show 5 more
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libperf 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-s390x 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-aarch64 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-ppc64le 6.12.0-211.68.1.el10_2 Red Hat Enterprise Linux Hidden (v. 10) kernel-modules-internal 6.12.0-211.68.1.el10_2, kernel-debuginfo-common-x86_64 6.12.0-211.68.1.el10_2
    fixed: vendor fix RHSA-2026:88477
  • Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-687.60.1.el9_8, kernel-rt-64k 5.14.0-687.60.1.el9_8, kernel-rt-core 5.14.0-687.60.1.el9_8, kernel-rt-modules 5.14.0-687.60.1.el9_8, kernel-rt-64k-core 5.14.0-687.60.1.el9_8, kernel-rt-debug-core 5.14.0-687.60.1.el9_8, +14 more
    fixed: vendor fix RHSA-2026:87805
  • Red Hat Enterprise Linux Real Time (v. 10) kernel-rt 6.12.0-211.68.1.el10_2, kernel-rt-64k 6.12.0-211.68.1.el10_2, kernel-rt-core 6.12.0-211.68.1.el10_2, kernel-rt-modules 6.12.0-211.68.1.el10_2, kernel-rt-64k-core 6.12.0-211.68.1.el10_2, kernel-rt-debug-core 6.12.0-211.68.1.el10_2, +14 more
    fixed: vendor fix RHSA-2026:88477
  • Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-687.60.1.el9_8, kernel-rt-core 5.14.0-687.60.1.el9_8, kernel-rt-modules 5.14.0-687.60.1.el9_8, kernel-rt-debug-core 5.14.0-687.60.1.el9_8, kernel-rt-modules-core 5.14.0-687.60.1.el9_8, kernel-rt-debug-modules 5.14.0-687.60.1.el9_8, +4 more
    fixed: vendor fix RHSA-2026:87805
  • Red Hat Enterprise Linux Real Time for NFV (v. 10) kernel-rt 6.12.0-211.68.1.el10_2, kernel-rt-core 6.12.0-211.68.1.el10_2, kernel-rt-modules 6.12.0-211.68.1.el10_2, kernel-rt-debug-core 6.12.0-211.68.1.el10_2, kernel-rt-modules-core 6.12.0-211.68.1.el10_2, kernel-rt-debug-modules 6.12.0-211.68.1.el10_2, +4 more
    fixed: vendor fix RHSA-2026:88477

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
4d ago

Exploit prediction

0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.