# CVE-2023-40791

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-10-16 · Modified: 2024-08-02
- Aliases: UBUNTU-CVE-2023-40791, DEBIAN-CVE-2023-40791
- Record: https://cvemate.com/vulnerability/CVE-2023-40791 · JSON: https://cvemate.com/vulnerability/CVE-2023-40791/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
- EPSS: 0.479%, percentile 42.963%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 59)

- debian linux (Debian): \< 6.4.13-1
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-edge (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-fde (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-fde-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gcp (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gcp-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-gcp-5.13 (Ubuntu): All versions (No fix recorded)

## 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/>
- <https://ubuntu.com/security/CVE-2023-40791>
- <https://git.kernel.org/linus/f443fd5af5dbd531f880d3645d5dd36976cf087f>
- <https://lore.kernel.org/linux-mm/000000000000273d0105ff97bf56@google.com/>
- <https://lore.kernel.org/linux-crypto/20571.1690369076@warthog.procyon.org.uk/>
- <https://www.cve.org/CVERecord?id=CVE-2023-40791>
- <https://security-tracker.debian.org/tracker/CVE-2023-40791>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40791>

---

Data as of 2026-12-05T13:31:02.397Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
