# CVE-2023-40791: extractusertosg in lib/scatterlist.c in the Linux kernel before 6.4.12 fails to unpin pages in a certain situation, as demonstrated by a WA…

- Severity: Medium 6.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-16T00:00:00.000Z
- Modified: 2026-06-17T06:19:30.200Z
- Assigned by: mitre

## Description

extract_user_to_sg in lib/scatterlist.c in the Linux kernel before 6.4.12 fails to unpin pages in a certain situation, as demonstrated by a WARNING for try_grab_page.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: before 6.4.12
- netapp h300s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h410s_firmware: no versions given

## References

- <https://lkml.org/lkml/2023/8/3/323> (exploit, mailing-list, third-party-advisory)
- <https://lore.kernel.org/linux-crypto/20571.1690369076%40warthog.procyon.org.uk/> (mailing-list, patch)
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f443fd5af5dbd531f880d3645d5dd36976cf087f> (mailing-list, patch)
- <https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.4.12> (release-notes)
- <https://security.netapp.com/advisory/ntap-20231110-0009/> (third-party-advisory)

## Sources

- CVE List: [CVE-2023-40791](https://www.cve.org/CVERecord?id=CVE-2023-40791), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-40791](https://nvd.nist.gov/vuln/detail/CVE-2023-40791), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40791 · Whole record: https://cve.day/CVE-2023-40791.json · Rebuilt by cve.day 2026-11-25T22:58:28.785Z
