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

net: skmsg: preserve sg.copy across SG transforms

The sk_msg sg.copy bitmap is part of the scatterlist entry ownership
state. A set bit tells sk_msg_compute_data_pointers() not to expose the
entry through writable BPF ctx->data. This protects entries backed by
pages that are not private to the sk_msg, such as splice-backed file
page-cache pages.

Several sk_msg transform paths move, copy, split, or compact
msg->sg.data[] entries without moving the matching sg.copy bit. This can
make an externally backed entry arrive at a new slot with a clear copy
bit. A later SK_MSG verdict can then expose sg_virt(sge) as writable
ctx->data and BPF stores can modify the original page cache.

Keep sg.copy synchronized with sg.data[] whenever entries are
transferred, shifted, split, or copied into a new sk_msg. Clear the bit
when an entry is replaced by a newly allocated private page or freed.
This covers the BPF pull/push/pop helpers, sk_msg_shift_left/right(),
sk_msg_xfer(), and tls_split_open_record(), including the partial tail
entry created during TLS open-record splitting.
Published: 2026-07-19
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs when the scatter‑list copy bitmap is not kept in sync with buffer transformations in the Linux kernel’s sk_msg subsystem. When a scatter‑list entry backed by a non‑private page cache page is moved, split, or compacted without updating its sg.copy flag, the entry can be exposed as writable to BPF programs. A malicious BPF helper can then overwrite the original page cache, enabling arbitrary modification of kernel memory. This flaw is a classic case of Improper Authorization (CWE‑279) and can lead to Remote Code Execution.

Affected Systems

All Linux kernel deployments that include the unpatched sk_msg scatter‑list handling logic. The bug is present in every released kernel until the commit that introduced the fix; therefore any system running a kernel built from a tree older than the patch is potentially vulnerable.

Risk and Exploitability

The flaw carries a CVSS score of 9.4, classifying it as a very high‑severity issue, and an EPSS score of <1 %, indicating that, at the time of assessment, the likelihood of exploitation is very low. Attackers would need the ability to load user‑controlled BPF programs, which typically requires elevated privileges or exploitation of another vulnerability that grants BPF access; therefore the primary attack vector inferred is local privilege escalation via a malicious BPF helper. The vulnerability is not catalogued in the CISA KEV list.

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the sg.copy synchronization fix (e.g., incorporate the commit 0eb4c16c4adb262763bda870a8ed38a1a9dec7ec or later releases).
  • Reboot the system or reload the kernel to activate the updated code.
  • If an upgrade is delayed, restrict or disable loading of BPF programs that depend on the vulnerable helpers (e.g., by tightening security policy or disabling the BPF subsystem while the fix is pending).

Generated by OpenCVE AI on July 30, 2026 at 22:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4700-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4717-1 linux security update
History

Fri, 24 Jul 2026 18:30:00 +0000


Tue, 21 Jul 2026 00:15:00 +0000

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

None

threat_severity

Important


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: skmsg: preserve sg.copy across SG transforms The sk_msg sg.copy bitmap is part of the scatterlist entry ownership state. A set bit tells sk_msg_compute_data_pointers() not to expose the entry through writable BPF ctx->data. This protects entries backed by pages that are not private to the sk_msg, such as splice-backed file page-cache pages. Several sk_msg transform paths move, copy, split, or compact msg->sg.data[] entries without moving the matching sg.copy bit. This can make an externally backed entry arrive at a new slot with a clear copy bit. A later SK_MSG verdict can then expose sg_virt(sge) as writable ctx->data and BPF stores can modify the original page cache. Keep sg.copy synchronized with sg.data[] whenever entries are transferred, shifted, split, or copied into a new sk_msg. Clear the bit when an entry is replaced by a newly allocated private page or freed. This covers the BPF pull/push/pop helpers, sk_msg_shift_left/right(), sk_msg_xfer(), and tls_split_open_record(), including the partial tail entry created during TLS open-record splitting.
Title net: skmsg: preserve sg.copy across SG transforms
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:36:13.332Z

Reserved: 2026-07-19T07:54:57.014Z

Link: CVE-2026-63830

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

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

Links: CVE-2026-63830 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T22:15:13Z

Weaknesses
  • CWE-279

    Incorrect Execution-Assigned Permissions