CVE-2023-40791
published 2023-10-16CVE-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 WARNING for…
PriorityP426medium6.3CVSS 3.1
AVLACHPRLUINSUCNIHAH
EPSS
0.45%
36.8th percentile
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.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.4.13-1 (forky) | linux 6.4.13-1 (forky) |
| linux | linux_kernel | < 6.4.12 | 6.4.12 |
| linux | linux_kernel | >= 0 < 6.4.13-1 | 6.4.13-1 |
| linux | linux_kernel | >= 0 < 6.4.13-1 | 6.4.13-1 |
| msrc | cbl2_kernel_5.15.135.1-2_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.16.3MEDIUMCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
osv6.3MEDIUM
vendor_debian6.3LOW
vendor_msrc6.3MEDIUM
vendor_redhat6.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-fmxm-fv27-gg49: extract_user_to_sg in lib/scatterlist
ghsa_unreviewed·2023-10-16
CVE-2023-40791 [CRITICAL] GHSA-fmxm-fv27-gg49: extract_user_to_sg in lib/scatterlist
extract_user_to_sg in lib/scatterlist.c in the Linux kernel before 6.4.2 fails to unpin pages in a certain situation, as demonstrated by a WARNING for try_grab_page.
OSV
CVE-2023-40791: extract_user_to_sg in lib/scatterlist
osv·2023-10-16·CVSS 6.3
CVE-2023-40791 [MEDIUM] CVE-2023-40791: extract_user_to_sg in lib/scatterlist
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.
Microsoft
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.
vendor_msrc·2023-10-10·CVSS 6.3
CVE-2023-40791 [MEDIUM] 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mar
Red Hat
kernel: lib/scatterlist.c fails to unpin pages
vendor_redhat·2023-08-03·CVSS 6.3
CVE-2023-40791 [MEDIUM] kernel: lib/scatterlist.c fails to unpin pages
kernel: lib/scatterlist.c fails to unpin pages
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.
An unreleased memory page flaw (unpinned) was found in extract_user_to_sg in the lib/scatterlist.c function of the Linux kernel. This flaw allows a local user, or potentially remote user, to crash the system.
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 8) - Not affected
Package: kernel (Red Hat Enterprise Linux 9) - Not affected
Pa
Debian
CVE-2023-40791: linux - extract_user_to_sg in lib/scatterlist.c in the Linux kernel before 6.4.12 fails ...
vendor_debian·2023·CVSS 6.3
CVE-2023-40791 [MEDIUM] CVE-2023-40791: linux - extract_user_to_sg in lib/scatterlist.c in the Linux kernel before 6.4.12 fails ...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved (fixed in 6.4.13-1)
sid: resolved (fixed in 6.4.13-1)
trixie: resolved (fixed in 6.4.13-1)
No detection rules found.
No public exploits indexed.
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.4.12https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f443fd5af5dbd531f880d3645d5dd36976cf087fhttps://lkml.org/lkml/2023/8/3/323https://lore.kernel.org/linux-crypto/20571.1690369076%40warthog.procyon.org.uk/https://security.netapp.com/advisory/ntap-20231110-0009/https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.4.12https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f443fd5af5dbd531f880d3645d5dd36976cf087fhttps://lkml.org/lkml/2023/8/3/323https://lore.kernel.org/linux-crypto/20571.1690369076%40warthog.procyon.org.uk/https://security.netapp.com/advisory/ntap-20231110-0009/
2023-10-16
Published