{"id":"CVE-2025-22063","aliases":["CVE-2025-22063"],"related":[],"kind":"vulnerability","state":"published","title":"netlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets\n\nWhen calling netlbl_conn_setattr(), addr->sa_family is used\nto determine the function behavior. If sk is an IPv4 socket,\nbut the connect function is called with an IPv6 address,\nthe function calipso_sock_setattr() is triggered.\nInside this function, the following code is executed:\n\nsk_fullsock(__sk) ? inet_sk(__sk)->pinet6 : NULL;\n\nSince sk is an IPv4 socket, pinet6 is NULL, leading to a\nnull pointer dereference.\n\nThis patch fixes the issue by checking if inet6_sk(sk)\nreturns a NULL pointer before accessing pinet6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlabel: Fix NULL pointer exception caused by CALIPSO on IPv4 sockets\n\nWhen calling netlbl_conn_setattr(), addr->sa_family is used\nto determine the function behavior. If sk is an IPv4 socket,\nbut the connect function is called with an IPv6 address,\nthe function calipso_sock_setattr() is triggered.\nInside this function, the following code is executed:\n\nsk_fullsock(__sk) ? inet_sk(__sk)->pinet6 : NULL;\n\nSince sk is an IPv4 socket, pinet6 is NULL, leading to a\nnull pointer dereference.\n\nThis patch fixes the issue by checking if inet6_sk(sk)\nreturns a NULL pointer before accessing pinet6.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netlabel: Se corrige la excepción de puntero nulo causada por CALIPSO en sockets IPv4. Al llamar a netlbl_conn_setattr(), se utiliza addr-&gt;sa_family para determinar el comportamiento de la función. Si sk es un socket IPv4, pero se llama a la función connect con una dirección IPv6, se activa la función calipso_sock_setattr(). Dentro de esta función, se ejecuta el siguiente código: sk_fullsock(__sk) ? inet_sk(__sk)-&gt;pinet6 : NULL; Dado que sk es un socket IPv4, pinet6 es NULL, lo que provoca una desreferencia de puntero nulo. Este parche corrige el problema comprobando si inet6_sk(sk) devuelve un puntero nulo antes de acceder a pinet6.","source":"nvd"}],"published":"2025-04-16T14:12:18.222Z","modified":"2026-06-17T08:44:57.820Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"a7e89541d05b98c79a51c0f95df020f8e82b62ed","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"797e5371cf55463b4530bab3fef5f27f7c6657a8","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"1927d0bcd5b81e80971bf6b8eba267508bd1c78b","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"3ba9cf69de50e8abed32b448616c313baa4c5712","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"9fe3839588db7519030377b7dee3f165e654f6c5","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"172a8a996a337206970467e871dd995ac07640b1","status":"affected"},{"type":"git","introduced":"ceba1832b1b2da0149c51de62a847c00bca1677a","fixed":"078aabd567de3d63d37d7673f714e309d369e6e2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.4.292","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.236","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.180","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.134","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.87","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.23","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.11","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.2","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.8","fixed":"5.4.292"},{"status":"affected","introduced":"5.5","fixed":"5.10.236"},{"status":"affected","introduced":"5.11","fixed":"5.15.180"},{"status":"affected","introduced":"5.16","fixed":"6.1.134"},{"status":"affected","introduced":"6.2","fixed":"6.6.87"},{"status":"affected","introduced":"6.7","fixed":"6.12.23"},{"status":"affected","introduced":"6.13","fixed":"6.13.11"},{"status":"affected","introduced":"6.14","fixed":"6.14.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1ad9166cab6a0f5c0b10344a97bdf749ae11dcbf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e38f7a6cdd68377f8a4189b2fbaec14a6dd5152","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7e89541d05b98c79a51c0f95df020f8e82b62ed","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/797e5371cf55463b4530bab3fef5f27f7c6657a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1927d0bcd5b81e80971bf6b8eba267508bd1c78b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ba9cf69de50e8abed32b448616c313baa4c5712","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fe3839588db7519030377b7dee3f165e654f6c5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/172a8a996a337206970467e871dd995ac07640b1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/078aabd567de3d63d37d7673f714e309d369e6e2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T17:40:57.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22063","url":"https://www.cve.org/CVERecord?id=CVE-2025-22063","licence":"CVE Terms of Use","modified":"2026-05-11T21:11:55.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22063","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22063","licence":"Public domain","modified":"2026-06-17T08:44:57.820Z"}],"updatedAt":"2026-11-25T22:58:56.591Z","epss":{"score":0.00304,"percentile":0.24986,"date":"2026-12-01T12:00:22.000Z"}}