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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-16 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-22063, DEBIAN-CVE-2025-22063
- Record: https://cvemate.com/vulnerability/CVE-2025-22063 · JSON: https://cvemate.com/vulnerability/CVE-2025-22063/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.304%, percentile 24.947%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 140)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-218.238 \| \< 5.15.0-142.152 \| \< 6.8.0-86.87
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.157 \| \< 5.15.0-1086.93 \| \< 6.8.0-1041.43
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1147.157~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1041.43~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1147.157+fips1 \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1041.43+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1152.159 \| \< 5.15.0-1091.100 \| \< 6.8.0-1041.47
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 54)

- <https://git.kernel.org/stable/c/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf>
- <https://git.kernel.org/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152>
- <https://git.kernel.org/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed>
- <https://git.kernel.org/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8>
- <https://git.kernel.org/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b>
- <https://git.kernel.org/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712>
- <https://git.kernel.org/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5>
- <https://git.kernel.org/stable/c/172a8a996a337206970467e871dd995ac07640b1>
- <https://git.kernel.org/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-22063>
- <https://www.cve.org/CVERecord?id=CVE-2025-22063>
- <https://git.kernel.org/linus/078aabd567de3d63d37d7673f714e309d369e6e2>
- <https://ubuntu.com/security/notices/USN-7585-1>
- <https://ubuntu.com/security/notices/USN-7585-2>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>

---

Data as of 2026-12-05T04:44:17.314Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
