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

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets

When calling netlblconnsetattr(), addr->safamily 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 calipsosocksetattr() is triggered. Inside this function, the following code is executed:

skfullsock(sk) ? inetsk(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 inet6sk(sk) returns a NULL pointer before accessing pinet6.

Affected Software

12 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=4.8<5.4.292
Linux Linux kernel>=5.5<5.10.236
Linux Linux kernel>=5.11<5.15.180
Linux Linux kernel>=5.16<6.1.134
Linux Linux kernel>=6.2<6.6.87
Linux Linux kernel>=6.7<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2
Microsoft azl3 kernel 6.6.85.1-4<6.6.92.2-1
6.6.92.2-1
Microsoft cbl2 kernel 5.15.176.3-3<5.15.180.1-1
5.15.180.1-1
Microsoft cbl2 kernel 5.15.180.1-1<5.15.180.1-1
5.15.180.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.92.2-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.180.1-1

Event History

Apr 16, 2025
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 5, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-22063?

CVE-2025-22063 is considered a medium severity vulnerability due to the potential for a NULL pointer dereference.

2

How do I fix CVE-2025-22063?

To fix CVE-2025-22063, it is recommended to update the Linux kernel to a version that includes the patch addressing this vulnerability.

3

What systems are affected by CVE-2025-22063?

CVE-2025-22063 affects Linux kernel versions that utilize IPv4 sockets and the netlbl_conn_setattr() function.

4

What type of vulnerability is CVE-2025-22063?

CVE-2025-22063 is a NULL pointer dereference vulnerability in the Linux kernel networking subsystem.

5

Is there a known exploit for CVE-2025-22063?

As of now, there is no publicly known exploit for CVE-2025-22063, but it should be addressed promptly to prevent potential exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203