CVE-2026-46289: lib/scatterlist: fix length calculations in extract_kvec_to_sg

Published Jun 8, 2026
·
Updated

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

lib/scatterlist: fix length calculations in extractkvectosg

Patch series "Fix bugs in extractitertosg()", v3.

Fix bugs in the kvec and user variants of extractitertosg. 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 kunitioviter 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 extractitertosg if there are no sglist entries at all.

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

Affected Software

6 affected componentsFixes available
Linux Linux kernel>=6.3
Microsoft azl3 kernel 6.6.139.1-1<6.6.141.1-1
6.6.141.1-1
Linux Linux kernel>=6.3<6.6.140
Linux Linux kernel>=6.7<6.12.88
Linux Linux kernel>=6.13<6.18.30
Linux Linux kernel>=6.19<7.0.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.141.1-1
  2. Upgrade

    Upgrade lib/scatterlist.c to a version that resolves this vulnerability.

    Fixed in v6.5+

Event History

Jun 8, 2026
CVE Published
via MITRE·03:46 PM
Data Sourced
via MITRE·03:46 PM
DescriptionSeverity
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 10, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-46289?

CVE-2026-46289 has been assigned a risk score of 37.

2

How do I fix CVE-2026-46289?

To fix CVE-2026-46289, it is recommended to update the Linux kernel to the latest patched version.

3

What components are affected by CVE-2026-46289?

CVE-2026-46289 affects the Linux kernel specifically in the lib/scatterlist module.

4

What is the nature of the vulnerability in CVE-2026-46289?

CVE-2026-46289 involves incorrect length calculations in the extract_kvec_to_sg function.

5

When was CVE-2026-46289 published?

CVE-2026-46289 was published on June 8, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203