CVE-2026-53095

bpf: Fix abuse of kprobe_write_ctx via freplace

No CVSS score yet EPSS 0.12%

Published 24 Jun 2026 Updated 24 Jun 2026 CNA: Linux

Check your servers for CVE-2026-53095

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-53095 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:

bpf: Fix abuse of kprobe_write_ctx via freplace

uprobe programs are allowed to modify struct pt_regs.

Since the actual program type of uprobe is KPROBE, it can be abused to modify struct pt_regs via kprobe+freplace when the kprobe attaches to kernel functions.

For example,

SEC("?kprobe") int kprobe(struct pt_regs *regs) { return 0; }

SEC("?freplace") int freplace_kprobe(struct pt_regs *regs) { regs->di = 0; return 0; }

freplace_kprobe prog will attach to kprobe prog. kprobe prog will attach to a kernel function.

Without this patch, when the kernel function runs, its first arg will always be set as 0 via the freplace_kprobe prog.

To fix the abuse of kprobe_write_ctx=true via kprobe+freplace, disallow attaching freplace programs on kprobe programs with different kprobe_write_ctx values.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7384893d970ea114952aef54ad7e3d7d2ca82d4f, before b312cf41b9e43f442613053f6cad39898e1baf96
affected from 7384893d970ea114952aef54ad7e3d7d2ca82d4f, before 9836cadbd96c7e0dbb0018fa60e7872dd31ac4f8
affected from 7384893d970ea114952aef54ad7e3d7d2ca82d4f, before 611fe4b79af72d00d80f2223354284447daafae9
Other versions: unaffected
Linux
affected 6.18
unaffected before 6.18
unaffected from 6.18.33 up to and including 6.18.*
unaffected from 7.0.10 up to and including 7.0.*
unaffected 7.1 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-53095 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-53095

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

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-53095 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.