# CVE-2026-46331: net/sched: fix pedit partial COW leading to page cache corruption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-190, CWE-787
- **Published:** 2026-06-16T06:26:21.066Z
- **Modified:** 2026-10-15T02:19:54.270Z

## Who should check

- Anyone running Linux \>= abe35bf3be51482593076d516a680d79e5fbc8e1, \< 544d857b42a1734b923040e13aa61a6fd4746cf2; \>= b773640d5bb9e2acfd91e2695717af04d47aa116, \< d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< a071e057518decc5e3bec89855758f5f8786f2c5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b685d6ef6f07a3b5ce814565a25f39f2157538a5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b198ed4e52580a7238c7c7082f03906f8b310313; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 3dee9d0c198faeb95d052c1b94c2958751a28512; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 899ee91156e57784090c5565e4f31bd7dbffbc5a; d0c38a914b0c4c21d553da801003d36979016726; 2ec2dd7d51a9320151f275ddbb2b53260fb32ca1; …
- Anyone running Linux 5.18

## Description

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

net/sched: fix pedit partial COW leading to page cache corruption

tcf\_pedit\_act() computes the COW range for skb\_ensure\_writable()
once before the key loop using tcfp\_off\_max\_hint, but the hint does
not account for the runtime header offset added by typed keys. This
can leave part of the write region un-COW'd.

Fix by moving skb\_ensure\_writable() inside the per-key loop where
the actual write offset is known, and add overflow checking on the
offset arithmetic. For negative offsets (e.g. Ethernet header edits
at ingress), use skb\_cow() to COW the headroom instead. Guard
offset\_valid() against INT\_MIN, where negation is undefined.

## Affected and fixed versions

- Linux: \>= abe35bf3be51482593076d516a680d79e5fbc8e1, \< 544d857b42a1734b923040e13aa61a6fd4746cf2; \>= b773640d5bb9e2acfd91e2695717af04d47aa116, \< d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< a071e057518decc5e3bec89855758f5f8786f2c5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b685d6ef6f07a3b5ce814565a25f39f2157538a5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b198ed4e52580a7238c7c7082f03906f8b310313; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 3dee9d0c198faeb95d052c1b94c2958751a28512; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 899ee91156e57784090c5565e4f31bd7dbffbc5a; d0c38a914b0c4c21d553da801003d36979016726; 2ec2dd7d51a9320151f275ddbb2b53260fb32ca1; … (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-46331. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46331.md
Affected: Linux >= abe35bf3be51482593076d516a680d79e5fbc8e1, < 544d857b42a1734b923040e13aa61a6fd4746cf2; >= b773640d5bb9e2acfd91e2695717af04d47aa116, < d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc; >= 8b796475fd7882663a870456466a4fb315cc1bd6, < a071e057518decc5e3bec89855758f5f8786f2c5; >= 8b796475fd7882663a87045…
Fixed in: Linux 544d857b42a1734b923040e13aa61a6fd4746cf2, Linux 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b, Linux 3dee9d0c198faeb95d052c1b94c2958751a28512, Linux 899ee91156e57784090c5565e4f31bd7dbffbc5a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-46331 being exploited?

There is no confirmed exploitation: CVE-2026-46331 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-46331?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-46331?

Linux \>= abe35bf3be51482593076d516a680d79e5fbc8e1, \< 544d857b42a1734b923040e13aa61a6fd4746cf2; \>= b773640d5bb9e2acfd91e2695717af04d47aa116, \< d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< a071e057518decc5e3bec89855758f5f8786f2c5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b685d6ef6f07a3b5ce814565a25f39f2157538a5; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< b198ed4e52580a7238c7c7082f03906f8b310313; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 3dee9d0c198faeb95d052c1b94c2958751a28512; \>= 8b796475fd7882663a870456466a4fb315cc1bd6, \< 899ee91156e57784090c5565e4f31bd7dbffbc5a; d0c38a914b0c4c21d553da801003d36979016726; 2ec2dd7d51a9320151f275ddbb2b53260fb32ca1; …; Linux 5.18.

### Is there a fix for CVE-2026-46331?

Yes. Fixed in Linux 544d857b42a1734b923040e13aa61a6fd4746cf2, Linux 2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b, Linux 3dee9d0c198faeb95d052c1b94c2958751a28512, Linux 899ee91156e57784090c5565e4f31bd7dbffbc5a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-46331?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:27709>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33666>
- vendor: <https://access.redhat.com/errata/RHSA-2026:34048>
- vendor: <https://access.redhat.com/errata/RHSA-2026:40021>
- vendor: <https://access.redhat.com/errata/RHSA-2026:28887>
- vendor: <https://access.redhat.com/errata/RHSA-2026:28962>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29080>
- vendor: <https://access.redhat.com/errata/RHSA-2026:34098>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29856>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29863>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29799>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29833>
- vendor: <https://access.redhat.com/errata/RHSA-2026:29794>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27731>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27288>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27705>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27713>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27708>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27789>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33225>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27353>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33220>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27707>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27704>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27355>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33219>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33221>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33222>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33223>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33224>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27354>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27706>
- patch: <https://git.kernel.org/stable/c/544d857b42a1734b923040e13aa61a6fd4746cf2>
- patch: <https://git.kernel.org/stable/c/d5d01d35a5a7d36f7cb679b67d9cbdd5205672dc>
- patch: <https://git.kernel.org/stable/c/a071e057518decc5e3bec89855758f5f8786f2c5>
- patch: <https://git.kernel.org/stable/c/b685d6ef6f07a3b5ce814565a25f39f2157538a5>
- patch: <https://git.kernel.org/stable/c/2bec122b9fb91507a758ab5e3e5c4fbe7cb3f61b>
- patch: <https://git.kernel.org/stable/c/b198ed4e52580a7238c7c7082f03906f8b310313>
- patch: <https://git.kernel.org/stable/c/3dee9d0c198faeb95d052c1b94c2958751a28512>
- patch: <https://git.kernel.org/stable/c/899ee91156e57784090c5565e4f31bd7dbffbc5a>
- exploit: <https://github.com/sgkdev/packet_edit_meme/tree/main>
- other: <https://access.redhat.com/security/cve/CVE-2026-46331>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2479492>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46331.json>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-46331>

HTML: <https://flawdb.com/CVE-2026-46331> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-46331>
