CVE-2025-22063
netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets
Check your servers for CVE-2025-22063
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22063 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 24.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152 affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before a7e89541d05b98c79a51c0f95df020f8e82b62ed affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 797e5371cf55463b4530bab3fef5f27f7c6657a8 affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 1927d0bcd5b81e80971bf6b8eba267508bd1c78b affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 3ba9cf69de50e8abed32b448616c313baa4c5712 affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 9fe3839588db7519030377b7dee3f165e654f6c5 affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 172a8a996a337206970467e871dd995ac07640b1 affected from ceba1832b1b2da0149c51de62a847c00bca1677a, before 078aabd567de3d63d37d7673f714e309d369e6e2
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.4.292 up to and including 5.4.* unaffected from 5.10.236 up to and including 5.10.* unaffected from 5.15.180 up to and including 5.15.* unaffected from 6.1.134 up to and including 6.1.* unaffected from 6.6.87 up to and including 6.6.* unaffected from 6.12.23 up to and including 6.12.* unaffected from 6.13.11 up to and including 6.13.* unaffected from 6.14.2 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22063 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22063
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-22063
trivy image --scanners vuln IMAGE | grep CVE-2025-22063
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf git.kernel.org
- https://git.kernel.org/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152 git.kernel.org
- https://git.kernel.org/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed git.kernel.org
- https://git.kernel.org/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8 git.kernel.org
- https://git.kernel.org/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b git.kernel.org
- https://git.kernel.org/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712 git.kernel.org
- https://git.kernel.org/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5 git.kernel.org
- https://git.kernel.org/stable/c/172a8a996a337206970467e871dd995ac07640b1 git.kernel.org
- https://git.kernel.org/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
Source: the record CVE-2025-22063 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse