CVE-2025-38251: atm: clip: prevent NULL deref in clip_push()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
atm: clip: prevent NULL deref in clip_push()
Blamed commit missed that vcc_destroy_socket() calls clip_push() with a NULL skb.
If clip_devs is NULL, clip_push() then crashes when reading skb->truesize.
The Linux kernel CVE team has assigned CVE-2025-38251 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 93a2014afbace907178afc3c9c1e62c9a338595a and fixed in 6.1.143 with commit 88c88f91f4b3563956bb52e7a71a3640f7ece157 Issue introduced in 5.7 with commit 93a2014afbace907178afc3c9c1e62c9a338595a and fixed in 6.6.96 with commit 3c709dce16999bf6a1d2ce377deb5dd6fdd8cb08 Issue introduced in 5.7 with commit 93a2014afbace907178afc3c9c1e62c9a338595a and fixed in 6.12.36 with commit a07005a77b18ae59b8471e7e4d991fa9f642b3c2 Issue introduced in 5.7 with commit 93a2014afbace907178afc3c9c1e62c9a338595a and fixed in 6.15.5 with commit ede31ad949ae0d03cb4c5edd79991586ad7c8bb8 Issue introduced in 5.7 with commit 93a2014afbace907178afc3c9c1e62c9a338595a and fixed in 6.16-rc4 with commit b993ea46b3b601915ceaaf3c802adf11e7d6bac6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-38251
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/atm/clip.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/88c88f91f4b3563956bb52e7a71a3640f7ece157 https://git.kernel.org/stable/c/3c709dce16999bf6a1d2ce377deb5dd6fdd8cb08 https://git.kernel.org/stable/c/a07005a77b18ae59b8471e7e4d991fa9f642b3c2 https://git.kernel.org/stable/c/ede31ad949ae0d03cb4c5edd79991586ad7c8bb8 https://git.kernel.org/stable/c/b993ea46b3b601915ceaaf3c802adf11e7d6bac6