# CVE-2025-38052: net/tipc: fix slab-use-after-free Read in tipc\_aead\_encrypt\_done

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; 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:** Remote, login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-06-18T09:33:33.427Z
- **Modified:** 2026-10-15T22:18:24.873Z

## Who should check

- Anyone running Linux \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< d42ed4de6aba232d946d20653a70f79158a6535b; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< f5c2c4eaaa5a8e7e0685ec031d480e588e263e59; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b8fcae6d2e93c54cacb8f579a77d827c1c643eb5; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b19fc1d0be3c3397e5968fe2627f22e7f84673b1; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 689a205cd968a1572ab561b0c4c2d50a10e9d3b0; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< e279024617134c94fd3e37470156534d5f2b3472
- Anyone running Linux 5.5

## Description

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

net/tipc: fix slab-use-after-free Read in tipc\_aead\_encrypt\_done

Syzbot reported a slab-use-after-free with the following call trace:

  ==================================================================
  BUG: KASAN: slab-use-after-free in tipc\_aead\_encrypt\_done+0x4bd/0x510 net/tipc/crypto.c:840
  Read of size 8 at addr ffff88807a733000 by task kworker/1:0/25

  Call Trace:
   kasan\_report+0xd9/0x110 mm/kasan/report.c:601
   tipc\_aead\_encrypt\_done+0x4bd/0x510 net/tipc/crypto.c:840
   crypto\_request\_complete include/crypto/algapi.h:266
   aead\_request\_complete include/crypto/internal/aead.h:85
   cryptd\_aead\_crypt+0x3b8/0x750 crypto/cryptd.c:772
   crypto\_request\_complete include/crypto/algapi.h:266
   cryptd\_queue\_worker+0x131/0x200 crypto/cryptd.c:181
   process\_one\_work+0x9fb/0x1b60 kernel/workqueue.c:3231

  Allocated by task 8355:
   kzalloc\_noprof include/linux/slab.h:778
   tipc\_crypto\_start+0xcc/0x9e0 net/tipc/crypto.c:1466
   tipc\_init\_net+0x2dd/0x430 net/tipc/core.c:72
   ops\_init+0xb9/0x650 net/core/net\_namespace.c:139
   setup\_net+0x435/0xb40 net/core/net\_namespace.c:343
   copy\_net\_ns+0x2f0/0x670 net/core/net\_namespace.c:508
   create\_new\_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
   unshare\_nsproxy\_namespaces+0xc0/0x1f0 kernel/nsproxy.c:228
   ksys\_unshare+0x419/0x970 kernel/fork.c:3323
   \_\_do\_sys\_unshare kernel/fork.c:3394

  Freed by task 63:
   kfree+0x12a/0x3b0 mm/slub.c:4557
   tipc\_crypto\_stop+0x23c/0x500 net/tipc/crypto.c:1539
   tipc\_exit\_net+0x8c/0x110 net/tipc/core.c:119
   ops\_exit\_list+0xb0/0x180 net/core/net\_namespace.c:173
   cleanup\_net+0x5b7/0xbf0 net/core/net\_namespace.c:640
   process\_one\_work+0x9fb/0x1b60 kernel/workqueue.c:3231

After freed the tipc\_crypto tx by delete namespace, tipc\_aead\_encrypt\_done
may still visit it in cryptd\_queue\_worker workqueue.

I reproduce this issue by:
  ip netns add ns1
  ip link add veth1 type veth peer name veth2
  ip link set veth1 netns ns1
  ip netns exec ns1 tipc bearer enable media eth dev veth1
  ip netns exec ns1 tipc node set key this\_is\_a\_master\_key master
  ip netns exec ns1 tipc bearer disable media eth dev veth1
  ip netns del ns1

The key of reproduction is that, simd\_aead\_encrypt is interrupted, leading
to crypto\_simd\_usable() return false. Thus, the cryptd\_queue\_worker is
triggered, and the tipc\_crypto tx will be visited.

  tipc\_disc\_timeout
    tipc\_bearer\_xmit\_skb
      tipc\_crypto\_xmit
        tipc\_aead\_encrypt
          crypto\_aead\_encrypt
            // encrypt()
            simd\_aead\_encrypt
              // crypto\_simd\_usable() is false
              child = &ctx-\>cryptd\_tfm-\>base;

  simd\_aead\_encrypt
    crypto\_aead\_encrypt
      // encrypt()
      cryptd\_aead\_encrypt\_enqueue
        cryptd\_aead\_enqueue
          cryptd\_enqueue\_request
            // trigger cryptd\_queue\_worker
            queue\_work\_on(smp\_processor\_id(), cryptd\_wq, &cpu\_queue-\>work)

Fix this by holding net reference count before encrypt.

## Affected and fixed versions

- Linux: \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< d42ed4de6aba232d946d20653a70f79158a6535b; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< f5c2c4eaaa5a8e7e0685ec031d480e588e263e59; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b8fcae6d2e93c54cacb8f579a77d827c1c643eb5; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b19fc1d0be3c3397e5968fe2627f22e7f84673b1; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 689a205cd968a1572ab561b0c4c2d50a10e9d3b0; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< e279024617134c94fd3e37470156534d5f2b3472 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38052.md
Affected: Linux >= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, < d42ed4de6aba232d946d20653a70f79158a6535b; >= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, < f5c2c4eaaa5a8e7e0685ec031d480e588e263e59; >= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, < b8fcae6d2e93c54cacb8f579a77d827c1c643eb5; >= fc1b6d6de2208774efd2a20…
Fixed in: Linux 689a205cd968a1572ab561b0c4c2d50a10e9d3b0, Linux 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c

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-38052 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

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

Linux \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< d42ed4de6aba232d946d20653a70f79158a6535b; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< f5c2c4eaaa5a8e7e0685ec031d480e588e263e59; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b8fcae6d2e93c54cacb8f579a77d827c1c643eb5; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< b19fc1d0be3c3397e5968fe2627f22e7f84673b1; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 689a205cd968a1572ab561b0c4c2d50a10e9d3b0; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c; \>= fc1b6d6de2208774efd2a20bf0daddb02d18b1e0, \< e279024617134c94fd3e37470156534d5f2b3472; Linux 5.5.

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

Yes. Fixed in Linux 689a205cd968a1572ab561b0c4c2d50a10e9d3b0, Linux 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c. No fix listed yet: follow the vendor advisory.

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

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/d42ed4de6aba232d946d20653a70f79158a6535b>
- patch: <https://git.kernel.org/stable/c/f5c2c4eaaa5a8e7e0685ec031d480e588e263e59>
- patch: <https://git.kernel.org/stable/c/b8fcae6d2e93c54cacb8f579a77d827c1c643eb5>
- patch: <https://git.kernel.org/stable/c/b19fc1d0be3c3397e5968fe2627f22e7f84673b1>
- patch: <https://git.kernel.org/stable/c/689a205cd968a1572ab561b0c4c2d50a10e9d3b0>
- patch: <https://git.kernel.org/stable/c/4a0fddc2c0d5c28aec8c262ad4603be0bef1938c>
- patch: <https://git.kernel.org/stable/c/e279024617134c94fd3e37470156534d5f2b3472>
- 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-38052>

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