# CVE-2025-38666: net: appletalk: Fix use-after-free in AARP proxy probe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-08-22T16:02:58.144Z
- **Modified:** 2026-06-17T09:17:36.923Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b35694ffabb2af308a1f725d70f60fd8a47d1f3e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 82d19a70ced28b17a38ebf1b6978c6c7db894979; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 186942d19c0222617ef61f50e1dba91e269a5963; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a6209e4649d45fd85d4193abc481911858ffc6f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e4f1564c5b699eb89b3040688fd6b4e57922f1f6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5f02ea0f63dd38c41539ea290fcc1693c73aa8e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f90b6bb203f3f38bf2b3d976113d51571df9a482; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4a92d07b0850342d3becf2e608f805e972467c
- Anyone running Linux 2.6.12

## Description

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

net: appletalk: Fix use-after-free in AARP proxy probe

The AARP proxy‐probe routine (aarp\_proxy\_probe\_network) sends a probe,
releases the aarp\_lock, sleeps, then re-acquires the lock.  During that
window an expire timer thread (\_\_aarp\_expire\_timer) can remove and
kfree() the same entry, leading to a use-after-free.

race condition:

         cpu 0                          \|            cpu 1
    atalk\_sendmsg()                     \|   atif\_proxy\_probe\_device()
    aarp\_send\_ddp()                     \|   aarp\_proxy\_probe\_network()
    mod\_timer()                         \|   lock(aarp\_lock) // LOCK!!
    timeout around 200ms                \|   alloc(aarp\_entry)
    and then call                       \|   proxies\[hash\] = aarp\_entry
    aarp\_expire\_timeout()               \|   aarp\_send\_probe()
                                        \|   unlock(aarp\_lock) // UNLOCK!!
    lock(aarp\_lock) // LOCK!!           \|   msleep(100);
    \_\_aarp\_expire\_timer(&proxies\[ct\])   \|
    free(aarp\_entry)                    \|
    unlock(aarp\_lock) // UNLOCK!!       \|
                                        \|   lock(aarp\_lock) // LOCK!!
                                        \|   UAF aarp\_entry !!

==================================================================
BUG: KASAN: slab-use-after-free in aarp\_proxy\_probe\_network+0x560/0x630 net/appletalk/aarp.c:493
Read of size 4 at addr ffff8880123aa360 by task repro/13278

CPU: 3 UID: 0 PID: 13278 Comm: repro Not tainted 6.15.2 \#3 PREEMPT(full)
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x116/0x1b0 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:408 \[inline\]
 print\_report+0xc1/0x630 mm/kasan/report.c:521
 kasan\_report+0xca/0x100 mm/kasan/report.c:634
 aarp\_proxy\_probe\_network+0x560/0x630 net/appletalk/aarp.c:493
 atif\_proxy\_probe\_device net/appletalk/ddp.c:332 \[inline\]
 atif\_ioctl+0xb58/0x16c0 net/appletalk/ddp.c:857
 atalk\_ioctl+0x198/0x2f0 net/appletalk/ddp.c:1818
 sock\_do\_ioctl+0xdc/0x260 net/socket.c:1190
 sock\_ioctl+0x239/0x6a0 net/socket.c:1311
 vfs\_ioctl fs/ioctl.c:51 \[inline\]
 \_\_do\_sys\_ioctl fs/ioctl.c:906 \[inline\]
 \_\_se\_sys\_ioctl fs/ioctl.c:892 \[inline\]
 \_\_x64\_sys\_ioctl+0x194/0x200 fs/ioctl.c:892
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xcb/0x250 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
 \</TASK\>

Allocated:
 aarp\_alloc net/appletalk/aarp.c:382 \[inline\]
 aarp\_proxy\_probe\_network+0xd8/0x630 net/appletalk/aarp.c:468
 atif\_proxy\_probe\_device net/appletalk/ddp.c:332 \[inline\]
 atif\_ioctl+0xb58/0x16c0 net/appletalk/ddp.c:857
 atalk\_ioctl+0x198/0x2f0 net/appletalk/ddp.c:1818

Freed:
 kfree+0x148/0x4d0 mm/slub.c:4841
 \_\_aarp\_expire net/appletalk/aarp.c:90 \[inline\]
 \_\_aarp\_expire\_timer net/appletalk/aarp.c:261 \[inline\]
 aarp\_expire\_timeout+0x480/0x6e0 net/appletalk/aarp.c:317

The buggy address belongs to the object at ffff8880123aa300
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 96 bytes inside of
 freed 192-byte region \[ffff8880123aa300, ffff8880123aa3c0)

Memory state around the buggy address:
 ffff8880123aa200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880123aa280: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc
\>ffff8880123aa300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                       ^
 ffff8880123aa380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8880123aa400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b35694ffabb2af308a1f725d70f60fd8a47d1f3e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 82d19a70ced28b17a38ebf1b6978c6c7db894979; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 186942d19c0222617ef61f50e1dba91e269a5963; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a6209e4649d45fd85d4193abc481911858ffc6f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e4f1564c5b699eb89b3040688fd6b4e57922f1f6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5f02ea0f63dd38c41539ea290fcc1693c73aa8e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f90b6bb203f3f38bf2b3d976113d51571df9a482; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4a92d07b0850342d3becf2e608f805e972467c (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6c4a92d07b0850342d3becf2e608f805e972467c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38666.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b35694ffabb2af308a1f725d70f60fd8a47d1f3e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 82d19a70ced28b17a38ebf1b6978c6c7db894979; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 186942d19c0222617ef61f50e1dba91e269a5963; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 82d19a70ced28b17a38ebf1b6978c6c7db894979, Linux 186942d19c0222617ef61f50e1dba91e269a5963, Linux 2a6209e4649d45fd85d4193abc481911858ffc6f, Linux 5f02ea0f63dd38c41539ea290fcc1693c73aa8e5, Linux 6c4a92d07b0850342d3becf2e608f805e972467c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38666 being exploited?

There is no confirmed exploitation: CVE-2025-38666 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38666?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38666?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b35694ffabb2af308a1f725d70f60fd8a47d1f3e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 82d19a70ced28b17a38ebf1b6978c6c7db894979; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 186942d19c0222617ef61f50e1dba91e269a5963; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a6209e4649d45fd85d4193abc481911858ffc6f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e4f1564c5b699eb89b3040688fd6b4e57922f1f6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5f02ea0f63dd38c41539ea290fcc1693c73aa8e5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f90b6bb203f3f38bf2b3d976113d51571df9a482; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4a92d07b0850342d3becf2e608f805e972467c; Linux 2.6.12.

### Is there a fix for CVE-2025-38666?

Yes. Fixed in Linux 82d19a70ced28b17a38ebf1b6978c6c7db894979, Linux 186942d19c0222617ef61f50e1dba91e269a5963, Linux 2a6209e4649d45fd85d4193abc481911858ffc6f, Linux 5f02ea0f63dd38c41539ea290fcc1693c73aa8e5, Linux 6c4a92d07b0850342d3becf2e608f805e972467c. Upgrade Linux to 6c4a92d07b0850342d3becf2e608f805e972467c or later.

### How do I check if I'm affected by CVE-2025-38666?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b35694ffabb2af308a1f725d70f60fd8a47d1f3e>
- patch: <https://git.kernel.org/stable/c/82d19a70ced28b17a38ebf1b6978c6c7db894979>
- patch: <https://git.kernel.org/stable/c/186942d19c0222617ef61f50e1dba91e269a5963>
- patch: <https://git.kernel.org/stable/c/2a6209e4649d45fd85d4193abc481911858ffc6f>
- patch: <https://git.kernel.org/stable/c/e4f1564c5b699eb89b3040688fd6b4e57922f1f6>
- patch: <https://git.kernel.org/stable/c/5f02ea0f63dd38c41539ea290fcc1693c73aa8e5>
- patch: <https://git.kernel.org/stable/c/f90b6bb203f3f38bf2b3d976113d51571df9a482>
- patch: <https://git.kernel.org/stable/c/6c4a92d07b0850342d3becf2e608f805e972467c>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38666>

HTML: <https://flawdb.com/CVE-2025-38666> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38666>
