# CVE-2025-38273: net: tipc: fix refcount warning in tipc\_aead\_encrypt

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-10 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-38273, DEBIAN-CVE-2025-38273
- Record: https://cvemate.com/vulnerability/CVE-2025-38273 · JSON: https://cvemate.com/vulnerability/CVE-2025-38273/json

## Description

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

net: tipc: fix refcount warning in tipc_aead_encrypt

syzbot reported a refcount warning [1] caused by calling get_net() on
a network namespace that is being destroyed (refcount=0). This happens
when a TIPC discovery timer fires during network namespace cleanup.

The recently added get_net() call in commit e279024617134 ("net/tipc:
fix slab-use-after-free Read in tipc_aead_encrypt_done") attempts to
hold a reference to the network namespace. However, if the namespace
is already being destroyed, its refcount might be zero, leading to the
use-after-free warning.

Replace get_net() with maybe_get_net(), which safely checks if the
refcount is non-zero before incrementing it. If the namespace is being
destroyed, return -ENODEV early, after releasing the bearer reference.

[1]: https://lore.kernel.org/all/68342b55.a70a0220.253bc2.0091.GAE@google.com/T/#m12019cf9ae77e1954f666914640efa36d52704a2
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.211%, percentile 11.939%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 113)

- debian linux (Debian): \< 6.1.147-1 \| \< 6.12.35-1
- ubuntu linux (Ubuntu): \< 5.15.0-156.166
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1092.99
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1092.99~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.15.0-1092.99+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1096.105
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1096.105~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/445d59025d76d0638b03110f8791d5b89ed5162d>
- <https://git.kernel.org/stable/c/e0b11227c4e8eb4bdf1b86aa8f0f3abb24e0f029>
- <https://git.kernel.org/stable/c/307391e8fe70401a6d39ecc9978e13c2c0cdf81f>
- <https://git.kernel.org/stable/c/acab7ca5ff19889b80a8ee7dec220ee1a96dede9>
- <https://git.kernel.org/stable/c/c762fc79d710d676b793f9d98b1414efe6eb51e6>
- <https://git.kernel.org/stable/c/9ff60e0d9974dccf24e89bcd3ee7933e538d929f>
- <https://git.kernel.org/stable/c/f29ccaa07cf3d35990f4d25028cc55470d29372b>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2025-38273>
- <https://www.cve.org/CVERecord?id=CVE-2025-38273>
- <https://git.kernel.org/linus/f29ccaa07cf3d35990f4d25028cc55470d29372b>
- <https://ubuntu.com/security/notices/USN-7774-1>
- <https://ubuntu.com/security/notices/USN-7774-2>
- <https://ubuntu.com/security/notices/USN-7774-3>
- <https://ubuntu.com/security/notices/USN-7775-1>
- <https://ubuntu.com/security/notices/USN-7776-1>
- <https://ubuntu.com/security/notices/USN-7775-2>
- <https://ubuntu.com/security/notices/USN-7775-3>
- <https://ubuntu.com/security/notices/USN-7774-4>

---

Data as of 2026-12-05T04:45:25.162Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
