CVE-2025-22063

NameCVE-2025-22063
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4178-1, DLA-4193-1, DSA-5907-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bullseye5.10.223-1vulnerable
bullseye (security)5.10.237-1fixed
bookworm6.1.137-1fixed
bookworm (security)6.1.140-1fixed
trixie6.12.27-1fixed
sid6.12.30-1fixed
linux-6.1 (PTS)bullseye (security)6.1.137-1~deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcebullseye5.10.237-1DLA-4178-1
linuxsourcebookworm6.1.135-1DSA-5907-1
linuxsource(unstable)6.12.25-1
linux-6.1sourcebullseye6.1.137-1~deb11u1DLA-4193-1

Notes

https://git.kernel.org/linus/078aabd567de3d63d37d7673f714e309d369e6e2 (6.15-rc1)

Search for package or bug name: Reporting problems