# CVE-2026-46289: lib/scatterlist: fix length calculations in extract\_kvec\_to\_sg

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-06-08T15:46:15.888Z
- **Modified:** 2026-08-05T12:31:03.214Z

## Who should check

- Anyone running Linux \>= 0185846975339a5c348373aa450a977f5242366b, \< 3f17500e86d730c76db638bb3ae52f9b5e496c76; \>= 0185846975339a5c348373aa450a977f5242366b, \< e5e22fc9963469e678c4f4bb38d26adcec107f1e; \>= 0185846975339a5c348373aa450a977f5242366b, \< 8fbba6829057979149d1b37d65690c037f3ddf4d; \>= 0185846975339a5c348373aa450a977f5242366b, \< 9d38756d0a93b66163554219fa9c3365f40c4035; \>= 0185846975339a5c348373aa450a977f5242366b, \< 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45
- Anyone running Linux 6.3

## Description

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

lib/scatterlist: fix length calculations in extract\_kvec\_to\_sg

Patch series "Fix bugs in extract\_iter\_to\_sg()", v3.

Fix bugs in the kvec and user variants of extract\_iter\_to\_sg.  This series
is growing due to useful remarks made by sashiko.dev.

The main bugs are:
- The length for an sglist entry when extracting from
  a kvec can exceed the number of bytes in the page. This
  is obviously not intended.
- When extracting a user buffer the sglist is temporarily
  used as a scratch buffer for extracted page pointers.
  If the sglist already contains some elements this scratch
  buffer could overlap with existing entries in the sglist.

The series adds test cases to the kunit\_iov\_iter test that demonstrate all
of these bugs.  Additionally, there is a memory leak fix for the test
itself.

The bugs were orignally introduced into kernel v6.3 where the function
lived in fs/netfs/iterator.c.  It was later moved to lib/scatterlist.c in
v6.5.  Thus the actual fix is only marked for backports to v6.5+.


This patch (of 5):

When extracting from a kvec to a scatterlist, do not cross page
boundaries.  The required length was already calculated but not used as
intended.

Adjust the copied length if the loop runs out of sglist entries without
extracting everything.

While there, return immediately from extract\_iter\_to\_sg if there are no
sglist entries at all.

A subsequent commit will add kunit test cases that demonstrate that the
patch is necessary.

## Affected and fixed versions

- Linux: \>= 0185846975339a5c348373aa450a977f5242366b, \< 3f17500e86d730c76db638bb3ae52f9b5e496c76; \>= 0185846975339a5c348373aa450a977f5242366b, \< e5e22fc9963469e678c4f4bb38d26adcec107f1e; \>= 0185846975339a5c348373aa450a977f5242366b, \< 8fbba6829057979149d1b37d65690c037f3ddf4d; \>= 0185846975339a5c348373aa450a977f5242366b, \< 9d38756d0a93b66163554219fa9c3365f40c4035; \>= 0185846975339a5c348373aa450a977f5242366b, \< 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46289.md
Affected: Linux >= 0185846975339a5c348373aa450a977f5242366b, < 3f17500e86d730c76db638bb3ae52f9b5e496c76; >= 0185846975339a5c348373aa450a977f5242366b, < e5e22fc9963469e678c4f4bb38d26adcec107f1e; >= 0185846975339a5c348373aa450a977f5242366b, < 8fbba6829057979149d1b37d65690c037f3ddf4d; >= 0185846975339a5c348373a…
Fixed in: Linux 3f17500e86d730c76db638bb3ae52f9b5e496c76, Linux 8fbba6829057979149d1b37d65690c037f3ddf4d, Linux 9d38756d0a93b66163554219fa9c3365f40c4035, Linux 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45

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-46289 being exploited?

There is no confirmed exploitation: CVE-2026-46289 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 0185846975339a5c348373aa450a977f5242366b, \< 3f17500e86d730c76db638bb3ae52f9b5e496c76; \>= 0185846975339a5c348373aa450a977f5242366b, \< e5e22fc9963469e678c4f4bb38d26adcec107f1e; \>= 0185846975339a5c348373aa450a977f5242366b, \< 8fbba6829057979149d1b37d65690c037f3ddf4d; \>= 0185846975339a5c348373aa450a977f5242366b, \< 9d38756d0a93b66163554219fa9c3365f40c4035; \>= 0185846975339a5c348373aa450a977f5242366b, \< 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45; Linux 6.3.

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

Yes. Fixed in Linux 3f17500e86d730c76db638bb3ae52f9b5e496c76, Linux 8fbba6829057979149d1b37d65690c037f3ddf4d, Linux 9d38756d0a93b66163554219fa9c3365f40c4035, Linux 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45. Upgrade Linux to 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45 or later.

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

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

- patch: <https://git.kernel.org/stable/c/3f17500e86d730c76db638bb3ae52f9b5e496c76>
- patch: <https://git.kernel.org/stable/c/e5e22fc9963469e678c4f4bb38d26adcec107f1e>
- patch: <https://git.kernel.org/stable/c/8fbba6829057979149d1b37d65690c037f3ddf4d>
- patch: <https://git.kernel.org/stable/c/9d38756d0a93b66163554219fa9c3365f40c4035>
- patch: <https://git.kernel.org/stable/c/07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45>

## 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-46289>

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