CVE-2025-38273

net: tipc: fix refcount warning in tipc_aead_encrypt

7.8 high EPSS 0.21%

Published 10 Jul 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-38273

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38273 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d42ed4de6aba232d946d20653a70f79158a6535b, before 445d59025d76d0638b03110f8791d5b89ed5162d
affected from f5c2c4eaaa5a8e7e0685ec031d480e588e263e59, before e0b11227c4e8eb4bdf1b86aa8f0f3abb24e0f029
affected from b8fcae6d2e93c54cacb8f579a77d827c1c643eb5, before 307391e8fe70401a6d39ecc9978e13c2c0cdf81f
affected from b19fc1d0be3c3397e5968fe2627f22e7f84673b1, before acab7ca5ff19889b80a8ee7dec220ee1a96dede9
affected from 689a205cd968a1572ab561b0c4c2d50a10e9d3b0, before c762fc79d710d676b793f9d98b1414efe6eb51e6
affected from e279024617134c94fd3e37470156534d5f2b3472, before 9ff60e0d9974dccf24e89bcd3ee7933e538d929f
affected from e279024617134c94fd3e37470156534d5f2b3472, before f29ccaa07cf3d35990f4d25028cc55470d29372b
affected 4a0fddc2c0d5c28aec8c262ad4603be0bef1938c
affected from 5.10.238, before 5.10.239
affected from 5.15.185, before 5.15.186
affected from 6.1.141, before 6.1.142
affected from 6.6.93, before 6.6.94
affected from 6.12.31, before 6.12.34
affected from 6.14.9, before 6.15
Other versions: unaffected
Linux
affected 6.15
unaffected before 6.15
unaffected from 5.10.239 up to and including 5.10.*
unaffected from 5.15.186 up to and including 5.15.*
unaffected from 6.1.142 up to and including 6.1.*
unaffected from 6.6.94 up to and including 6.6.*
unaffected from 6.12.34 up to and including 6.12.*
unaffected from 6.15.3 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38273 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38273

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38273
trivy image --scanners vuln IMAGE | grep CVE-2025-38273

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38273 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.