{"id":"CVE-2025-38460","state":"PUBLISHED","title":"atm: clip: Fix potential null-ptr-deref in to_atmarpd().","description":"In the Linux kernel, the following vulnerability has been resolved:\n\natm: clip: Fix potential null-ptr-deref in to_atmarpd().\n\natmarpd is protected by RTNL since commit f3a0592b37b8 (\"[ATM]: clip\ncauses unregister hang\").\n\nHowever, it is not enough because to_atmarpd() is called without RTNL,\nespecially clip_neigh_solicit() / neigh_ops->solicit() is unsleepable.\n\nAlso, there is no RTNL dependency around atmarpd.\n\nLet's use a private mutex and RCU to protect access to atmarpd in\nto_atmarpd().","publishedAt":"2025-07-25T15:27:38.608Z","updatedAt":"2026-10-15T21:52:16.661Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a4c5785feb979cd996a99cfaad8bf353b2e79301","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"70eac9ba7ce25d99c1d99bbf4ddb058940f631f9","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3251ce3979f41bd228f77a7615f9dd616d06a110","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"06935c50cfa3ac57cce80bba67b6d38ec1406e92","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"36caab990b69ef4eec1d81c52a19f080b7daa059","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f58e4270c73e7f086322978d585ea67c8076ce49","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"706cc36477139c1616a9b2b96610a8bb520b7119","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/atm/clip.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.4.296","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.240","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.189","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.146","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.99","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.39","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.7","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/atm/clip.c"]}],"references":["https://git.kernel.org/stable/c/a4c5785feb979cd996a99cfaad8bf353b2e79301","https://git.kernel.org/stable/c/70eac9ba7ce25d99c1d99bbf4ddb058940f631f9","https://git.kernel.org/stable/c/3251ce3979f41bd228f77a7615f9dd616d06a110","https://git.kernel.org/stable/c/ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57","https://git.kernel.org/stable/c/06935c50cfa3ac57cce80bba67b6d38ec1406e92","https://git.kernel.org/stable/c/36caab990b69ef4eec1d81c52a19f080b7daa059","https://git.kernel.org/stable/c/f58e4270c73e7f086322978d585ea67c8076ce49","https://git.kernel.org/stable/c/706cc36477139c1616a9b2b96610a8bb520b7119","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38460.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38460","state":"PUBLISHED","datePublished":"2025-07-25T15:27:38.608Z","dateUpdated":"2026-10-15T21:52:16.661Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.019Z"},"containers":{"cna":{"title":"atm: clip: Fix potential null-ptr-deref in to_atmarpd().","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\natm: clip: Fix potential null-ptr-deref in to_atmarpd().\n\natmarpd is protected by RTNL since commit f3a0592b37b8 (\"[ATM]: clip\ncauses unregister hang\").\n\nHowever, it is not enough because to_atmarpd() is called without RTNL,\nespecially clip_neigh_solicit() / neigh_ops->solicit() is unsleepable.\n\nAlso, there is no RTNL dependency around atmarpd.\n\nLet's use a private mutex and RCU to protect access to atmarpd in\nto_atmarpd()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a4c5785feb979cd996a99cfaad8bf353b2e79301","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"70eac9ba7ce25d99c1d99bbf4ddb058940f631f9","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3251ce3979f41bd228f77a7615f9dd616d06a110","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"06935c50cfa3ac57cce80bba67b6d38ec1406e92","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"36caab990b69ef4eec1d81c52a19f080b7daa059","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f58e4270c73e7f086322978d585ea67c8076ce49","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"706cc36477139c1616a9b2b96610a8bb520b7119","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/atm/clip.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.4.296","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.240","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.189","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.146","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.99","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.39","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.7","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/atm/clip.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a4c5785feb979cd996a99cfaad8bf353b2e79301"},{"url":"https://git.kernel.org/stable/c/70eac9ba7ce25d99c1d99bbf4ddb058940f631f9"},{"url":"https://git.kernel.org/stable/c/3251ce3979f41bd228f77a7615f9dd616d06a110"},{"url":"https://git.kernel.org/stable/c/ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57"},{"url":"https://git.kernel.org/stable/c/06935c50cfa3ac57cce80bba67b6d38ec1406e92"},{"url":"https://git.kernel.org/stable/c/36caab990b69ef4eec1d81c52a19f080b7daa059"},{"url":"https://git.kernel.org/stable/c/f58e4270c73e7f086322978d585ea67c8076ce49"},{"url":"https://git.kernel.org/stable/c/706cc36477139c1616a9b2b96610a8bb520b7119"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The race is driven from local context — an ATM socket's ATMARPD_CTRL open/close on one side and local packet transmission over the atm%d CLIP device (clip_start_xmit/clip_neigh_solicit) on the other. Received network packets can only supply one half of the race and give a remote party no influence over the teardown side, so Local is the accurate vector.\nAC:H - Scoring the security-meaningful attacker (unprivileged local user), the exploit requires being inside to_atmarpd() exactly while atmarpd_close() NULLs and frees the daemon's vcc — the daemon teardown is a system condition that an unprivileged attacker cannot induce, even though they can hammer the trigger path continuously.\nPR:L - No privileges are needed to reach the vulnerable function: any local user sending IP traffic to unresolved addresses on a configured CLIP interface drives clip_start_xmit()/clip_neigh_solicit() → to_atmarpd(). Only the administrative setup (SIOCMKCLIP/ATMARPD_CTRL, capable(CAP_NET_ADMIN)) is privileged, and that is the pre-existing deployment, not the attack.\nUI:N - No victim action is required — the attacker's own traffic triggers the vulnerable path, and the daemon-teardown condition is accounted for in Attack Complexity rather than user interaction.\nS:U - Both the flaw and its impact are confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Winning the race leaves the racing thread operating on a freed struct atm_vcc/sock allocated from the generic kmalloc caches, and a use-after-free of a sprayable sock object can be leveraged to read kernel memory.\nI:H - The stale pointer is used for an atomic_add() write, an skb_queue_tail() list insertion into freed memory, and an indirect call through the freed sock's sk_data_ready() — a write primitive plus control-flow hijack after heap grooming.\nA:H - The minimum outcome is a kernel oops — a NULL (or freed) sock dereference in atm_force_charge()/skb_queue_tail() and a call through a NULL/garbage sk_data_ready pointer — panicking the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:02:03.635Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.4.296"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.240"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.146"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.99"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.15.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:38:19.880Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-38460","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:50:37.490396Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:52:16.661Z"}}]}}}