CVE-2025-22063 json
netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets
published 2025-04-16 18 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-11235
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets
When calling netlbl_conn_setattr(), addr->sa_family is used to determine the function behavior. If sk is an IPv4 socket, but the connect function is called with an IPv6 address, the function calipso_sock_setattr() is triggered. Inside this function, the following code is executed:
sk_fullsock(__sk) ? inet_sk(__sk)->pinet6 : NULL;
Since sk is an IPv4 socket, pinet6 is NULL, leading to a null pointer dereference.
This patch fixes the issue by checking if inet6_sk(sk) returns a NULL pointer before accessing pinet6.
Patch / fix
- Linux Linux 5.4.292, 5.10.236, 5.15.180, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2, 6.15
- linux Debian 12 6.1.135-1
- linux Debian 14, Debian 13 6.12.25-1
debian advisories DEBIAN-CVE-2025-22063
- linux Ubuntu 22.04 LTS 5.15.0-142.152
- linux Ubuntu 24.04 LTS 6.8.0-86.87
- linux-aws Ubuntu 22.04 LTS 5.15.0-1086.93
- linux-aws Ubuntu 24.04 LTS 6.8.0-1041.43
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1085.94
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1042.45
- linux-gke Ubuntu 22.04 LTS 5.15.0-1083.89
- linux-gke Ubuntu 24.04 LTS 6.8.0-1038.43
ubuntu advisories UBUNTU-CVE-2025-22063
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
- dtb-aarch64 openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-64kb SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-syms SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-obs-qa openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-source SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-default SLE Workstation Extension 15 SP6, SLE Module for Legacy 15 SP6, SLE Module for Basesystem 15 SP6 +3 more 6.4.0-150600.23.53.1
- kernel-kvmsmall openSUSE Leap 15.6 6.4.0-150600.23.53.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 6.4.0-150600.23.53.1
suse advisories SUSE-SU-2025:02000-1SUSE-SU-2025:01983-1SUSE-SU-2025:01972-1SUSE-SU-2025:20413-1SUSE-SU-2025:01967-1SUSE-SU-2025:01965-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:87805
- kernel Rocky Linux 9 5.14.0-687.60.1.el9_8
rocky linux advisories RLSA-2026:87805
- git.kernel.org/stable/c/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf commit
- git.kernel.org/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152 commit
- git.kernel.org/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed commit
- git.kernel.org/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8 commit
- git.kernel.org/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b commit
- git.kernel.org/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712 commit
- git.kernel.org/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5 commit
- git.kernel.org/stable/c/172a8a996a337206970467e871dd995ac07640b1 commit
- git.kernel.org/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2 commit
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-22063 updated cvss 5.5
kernel: netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
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 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 10 kernelaffected: no fix available
-
Red Hat Enterprise Linux 10 libkrununder investigation
-
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 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 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 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 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 morefixed: vendor fix RHSA-2026:87805
-
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 morenot affected: vulnerable code not present
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
- 13 mo ago
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 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
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf
patch
-
git.kernel.org
/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152
patch
-
git.kernel.org
/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed
patch
-
git.kernel.org
/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8
patch
-
git.kernel.org
/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b
patch
-
git.kernel.org
/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712
patch
-
git.kernel.org
/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5
patch
-
git.kernel.org
/stable/c/172a8a996a337206970467e871dd995ac07640b1
patch
-
git.kernel.org
/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2
patch
- lists.debian.org /debian-lts-announce/2025/05/msg00045.html
- lists.debian.org /debian-lts-announce/2025/05/msg00030.html
Sources
- CVE List CVE-2025-22063
- NVD CVE-2025-22063
Fencer Vulns 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.