CVE-2025-22063: netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets
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.
Security readout for executives and security teams
Plain-English summary
This Linux kernel flaw can let a local low-privileged user crash an affected system by reaching a NetLabel/CALIPSO code path with mismatched IPv4 and IPv6 socket handling. The impact is availability only, not data theft or privilege escalation in the provided sources.
Executive priority
Treat as a normal-priority kernel availability fix. It is not a known actively exploited issue in the provided evidence, but shared Linux systems should be patched promptly because a local crash can disrupt services.
Technical view
The bug is a CWE-476 NULL pointer dereference in netlabel. An IPv4 socket passed an IPv6 connect address can route into calipso_sock_setattr(), where inet_sk(sk)->pinet6 is NULL. Kernel stable fixes add a NULL check before accessing the IPv6 socket state.
Likely exposure
Exposure is limited to affected Linux kernel versions where the NetLabel/CALIPSO path is present and reachable by a low-privileged local user. Internet-facing remote exploitation is not indicated by the CVSS vector or source bundle.
Exploitation context
The CVE has CVSS 5.5 with AV:L, PR:L, UI:N, and availability high. The bundle marks KEV false and provides no cited evidence of active exploitation, public exploit availability, or remote attack paths.
Researcher notes
The source evidence supports a local denial-of-service class issue, not confidentiality or integrity impact. The affected-version data in the bundle is incomplete as plain version strings, so rely on upstream stable commits and distribution advisories for exact package applicability.
Mitigation direction
Apply vendor kernel updates that include the referenced stable fixes.
For Debian LTS, review the listed Debian security announcements.
Prioritize multi-user and multi-tenant Linux systems first.
Check distribution advisories before assuming raw upstream version status.
Reboot into the patched kernel after updating.
Validation and detection
Inventory Linux kernel versions across servers and images.
Confirm whether vendor packages include fixes for CVE-2025-22063.
Verify running kernels after reboot, not only installed packages.
Review local-user exposure on shared hosts and container platforms.
Track Debian LTS advisory applicability for Debian systems.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.