CVE-2026-74628

net/x25: fix use-after-free of the socket by its timers

9.8 critical EPSS 0.50%

Published 22 Aug 2026 Updated 27 Aug 2026 CNA: Linux

Check your servers for CVE-2026-74628

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-2026-74628 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/x25: fix use-after-free of the socket by its timers

The x25 timers are armed with mod_timer() and cancelled with timer_delete(), so a pending timer holds no reference on the socket and a cancel does not wait for a callback already running on another CPU.

x25_heartbeat_expiry() also rearms unconditionally, so it can reinstall sk->sk_timer after __x25_destroy_socket() has passed its cancel point. The following __sock_put() frees the socket while the timer is still queued, and the next expiry uses freed memory. KASAN reports a slab-use-after-free on the kmalloc-2k object freed by close().

timer_delete_sync() cannot be used here: x25_heartbeat_expiry() and x25_timer_expiry() both reach the cancels from inside the timer they would wait on, through __x25_destroy_socket() and x25_disconnect().

Arm the timers with sk_reset_timer() and cancel them with sk_stop_timer() so that an armed timer owns a reference, and release it in both expiry handlers. Rearm the heartbeat only while sk_hashed(sk) is still true, since __x25_destroy_socket() unlinks the socket before dropping it. Arm the deferred destroy timer the same way and drop its reference in x25_destroy_timer().

Reproduced on net with KASAN, with the heartbeat period shortened so the window recurs. With this patch the reproducer no longer triggers a report and /proc/net/x25 drains.

Discovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an 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.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 44.3% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ba925a2e98ce967a0e71c5bcbcf5dbd3facaf0c8
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6b79659590f0f82a9b8efd2ffd55ec6399ebfc33
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fdd9ac50b9b61ef2b2d52c5156aff788be91454d
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 1fc9f6d2c7c9fdb341bfe8ca449c990632299ea6
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 3c4919be5d910db4beebca420953858606fba7d8
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 4bc522b33438fefc3272840ae5988771863a4f1f
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e92c7e2b41d1528a830bc64c5e4e46dfa8133dda
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 2195424c3da2ef1829a63b807e3a900a90e57d85
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.10.267 up to and including 5.10.*
unaffected from 5.15.217 up to and including 5.15.*
unaffected from 6.1.184 up to and including 6.1.*
unaffected from 6.6.153 up to and including 6.6.*
unaffected from 6.12.105 up to and including 6.12.*
unaffected from 6.18.45 up to and including 6.18.*
unaffected from 7.1.9 up to and including 7.1.*
unaffected 7.2 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-2026-74628 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-74628

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-2026-74628
trivy image --scanners vuln IMAGE | grep CVE-2026-74628

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-2026-74628 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.