Description
In the Linux kernel, the following vulnerability has been resolved:

bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data()

When the scatterlist ring is full or nearly full, bpf_msg_push_data()
enters a copy fallback path and computes copy + len for the page
allocation size. Since len comes from BPF with arg3_type = ARG_ANYTHING
and both are u32, a crafted len can wrap the sum to a small value,
causing an undersized allocation followed by an out-of-bounds memcpy.

BUG: unable to handle page fault for address: ffffed104089a402
Oops: Oops: 0000 [#1] SMP KASAN NOPTI
Call Trace:
__asan_memcpy (mm/kasan/shadow.c:105)
bpf_msg_push_data (net/core/filter.c:2852 net/core/filter.c:2788)
bpf_prog_9ed8b5711920a7d7+0x2e/0x36
sk_psock_msg_verdict (net/core/skmsg.c:934)
tcp_bpf_sendmsg (net/ipv4/tcp_bpf.c:421 net/ipv4/tcp_bpf.c:584)
__sys_sendto (net/socket.c:2206)
do_syscall_64 (arch/x86/entry/syscall_64.c:94)
entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)

Add an overflow check before the allocation.
Published: 2026-07-27
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates from an integer overflow in the Linux kernel BPF subsystem where an overflowing sum of two unsigned 32-bit values is used to calculate memory allocation size, leading to an undersized buffer that is then over‑copied with memcpy. This causes an out‑of‑bounds write that can corrupt kernel memory and result in a kernel panic, providing a denial of service. The weakness is a classic integer‑overflow leading to a buffer overflow and also a write‑after‑allocation vulnerability (CWE‑787). Based on the description, it is inferred that the attacker must supply a BPF program that triggers the copy fallback path, as the len is sourced from BPF with ARG_ANYTHING.

Affected Systems

All Linux kernel implementations are affected until the kernel includes the overflow check added to bpf_msg_push_data(). The problem exists in any kernel that has not been patched with the commit adding the check. The references point to kernel commits that implement the safeguard, indicating the fix is part of the upstream Linux kernel tree rather than a vendor‑specific variant.

Risk and Exploitability

The CVSS score is 8.4, and the EPSS score is less than 1%, indicating a very low but nonzero likelihood of exploitation. The vulnerability is not listed in CISA KEV, suggesting no known widespread exploitation yet. An attacker would need to supply a BPF program that triggers the copy fallback path, which can be done via socket sendto or similar system calls. This suggests a local or potentially remote exploitation path depending on the ability to load malicious BPF code. The critical impact of a kernel panic gives this flaw high intrinsic risk, but its exploitation complexity may be moderate because it relies on the ability to inject a crafted len value through a BPF program.

Generated by OpenCVE AI on August 4, 2026 at 13:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the bpf_msg_push_data overflow check; this is the recommended permanent fix.
  • Apply the upstream patch or a backported patch that adds the overflow guard if the distribution does not yet provide an updated kernel version.
  • If upgrading the kernel is not immediately possible, restrict BPF program loading to trusted users only and audit any BPF program submissions to prevent malicious len values from reaching the kernel.

Generated by OpenCVE AI on August 4, 2026 at 13:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
Debian DSA Debian DSA DSA-6405-1 linux security update
History

Sun, 02 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-680

Thu, 30 Jul 2026 06:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Thu, 30 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-680

Wed, 29 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Mon, 27 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data() When the scatterlist ring is full or nearly full, bpf_msg_push_data() enters a copy fallback path and computes copy + len for the page allocation size. Since len comes from BPF with arg3_type = ARG_ANYTHING and both are u32, a crafted len can wrap the sum to a small value, causing an undersized allocation followed by an out-of-bounds memcpy. BUG: unable to handle page fault for address: ffffed104089a402 Oops: Oops: 0000 [#1] SMP KASAN NOPTI Call Trace: __asan_memcpy (mm/kasan/shadow.c:105) bpf_msg_push_data (net/core/filter.c:2852 net/core/filter.c:2788) bpf_prog_9ed8b5711920a7d7+0x2e/0x36 sk_psock_msg_verdict (net/core/skmsg.c:934) tcp_bpf_sendmsg (net/ipv4/tcp_bpf.c:421 net/ipv4/tcp_bpf.c:584) __sys_sendto (net/socket.c:2206) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Add an overflow check before the allocation.
Title bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:42:54.942Z

Reserved: 2026-07-19T15:36:31.795Z

Link: CVE-2026-64548

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-07-27T21:17:07.570

Modified: 2026-07-30T06:25:58.590

Link: CVE-2026-64548

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-27T00:00:00Z

Links: CVE-2026-64548 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T14:00:03Z

Weaknesses