VDB

CVE-2026-53095

CVE-2026-53095 PUBLISHED

bpf: Fix abuse of kprobe_write_ctx via freplace

Reported by linux · Published June 24, 2026

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.

EPSS 0.16% · 5.3th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.18Amazon Linux1:6.18.33-63.124.amzn2023
perf6.18Amazon Linux1:6.18.33-63.124.amzn2023
linux_kernellinux7.0.10, 6.18.33
LinuxLinux611fe4b79af72d00d80f2223354284447daafae9

Risk scores

EPSS Score
0.16%
5.3th percentile

Affected products

VendorProductVersions
LinuxLinux7384893d970ea114952aef54ad7e3d7d2ca82d4f, 7384893d970ea114952aef54ad7e3d7d2ca82d4f, 7384893d970ea114952aef54ad7e3d7d2ca82d4f
LinuxLinux6.18, 0, 6.18.33
amazon:2023python3-perf6.180
amazon:2023perf6.180
LinuxLinux7.0.10, 6.18.33, 0
amazon:2023kernel6.18-tools0
amazon:2023kernel-livepatch-6.18.33-63.1240
amazon:2023bpftool6.180
amazon:2023kernel6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-devel0
linuxlinux_kernel6.18, 6.18, 6.18
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-modules-extra0

Timeline

  • Jun 24, 2026 CVE Published
  • Jun 25, 2026 EPSS Score (10 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
  • Aug 11, 2026 Security Advisory (63 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-53095
vulnetix vdb fixes CVE-2026-53095

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53095/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›