# CVE-2025-22063: netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets

> 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, CNA) `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-04-16T14:12:18.222Z
- **Modified:** 2026-06-17T08:44:57.820Z

## Who should check

- Anyone running Linux \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< a7e89541d05b98c79a51c0f95df020f8e82b62ed; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 797e5371cf55463b4530bab3fef5f27f7c6657a8; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1927d0bcd5b81e80971bf6b8eba267508bd1c78b; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 3ba9cf69de50e8abed32b448616c313baa4c5712; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 9fe3839588db7519030377b7dee3f165e654f6c5; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 172a8a996a337206970467e871dd995ac07640b1; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 078aabd567de3d63d37d7673f714e309d369e6e2
- Anyone running Linux 4.8

## 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.

## Affected and fixed versions

- Linux: \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< a7e89541d05b98c79a51c0f95df020f8e82b62ed; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 797e5371cf55463b4530bab3fef5f27f7c6657a8; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1927d0bcd5b81e80971bf6b8eba267508bd1c78b; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 3ba9cf69de50e8abed32b448616c313baa4c5712; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 9fe3839588db7519030377b7dee3f165e654f6c5; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 172a8a996a337206970467e871dd995ac07640b1; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 078aabd567de3d63d37d7673f714e309d369e6e2 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 078aabd567de3d63d37d7673f714e309d369e6e2 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-22063. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22063.md
Affected: Linux >= ceba1832b1b2da0149c51de62a847c00bca1677a, < 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf; >= ceba1832b1b2da0149c51de62a847c00bca1677a, < 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152; >= ceba1832b1b2da0149c51de62a847c00bca1677a, < a7e89541d05b98c79a51c0f95df020f8e82b62ed; >= ceba1832b1b2da0149c51de…
Fixed in: Linux 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf, Linux 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152, Linux 797e5371cf55463b4530bab3fef5f27f7c6657a8, Linux 1927d0bcd5b81e80971bf6b8eba267508bd1c78b, Linux 3ba9cf69de50e8abed32b448616c313baa4c5712, Linux 9fe3839588db7519030377b7dee3f165e654f6c5, Linux 172a8…

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-22063 being exploited?

There is no confirmed exploitation: CVE-2025-22063 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-22063?

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

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

Linux \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< a7e89541d05b98c79a51c0f95df020f8e82b62ed; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 797e5371cf55463b4530bab3fef5f27f7c6657a8; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 1927d0bcd5b81e80971bf6b8eba267508bd1c78b; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 3ba9cf69de50e8abed32b448616c313baa4c5712; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 9fe3839588db7519030377b7dee3f165e654f6c5; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 172a8a996a337206970467e871dd995ac07640b1; \>= ceba1832b1b2da0149c51de62a847c00bca1677a, \< 078aabd567de3d63d37d7673f714e309d369e6e2; Linux 4.8.

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

Yes. Fixed in Linux 1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf, Linux 1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152, Linux 797e5371cf55463b4530bab3fef5f27f7c6657a8, Linux 1927d0bcd5b81e80971bf6b8eba267508bd1c78b, Linux 3ba9cf69de50e8abed32b448616c313baa4c5712, Linux 9fe3839588db7519030377b7dee3f165e654f6c5, Linux 172a8a996a337206970467e871dd995ac07640b1, Linux 078aabd567de3d63d37d7673f714e309d369e6e2. Upgrade Linux to 078aabd567de3d63d37d7673f714e309d369e6e2 or later.

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

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/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf>
- patch: <https://git.kernel.org/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152>
- patch: <https://git.kernel.org/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed>
- patch: <https://git.kernel.org/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8>
- patch: <https://git.kernel.org/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b>
- patch: <https://git.kernel.org/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712>
- patch: <https://git.kernel.org/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5>
- patch: <https://git.kernel.org/stable/c/172a8a996a337206970467e871dd995ac07640b1>
- patch: <https://git.kernel.org/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.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-22063>

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