# CVE-2024-57883: mm: hugetlb: independent PMD page table shared count

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-01-15T13:05:36.352Z
- **Modified:** 2026-10-15T22:18:03.883Z

## Who should check

- Anyone running Linux \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 8410996eb6fea116fe1483ed977aacf580eee7b4; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 02333ac1c35370517a19a4a131332a9690c6a5c7; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 2e31443a0d18ae43b9d29e02bf0563f07772193d; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 59d9094df3d79443937add8700b2ef1a866b1081
- Anyone running Linux 2.6.20

## Description

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

mm: hugetlb: independent PMD page table shared count

The folio refcount may be increased unexpectly through try\_get\_folio() by
caller such as split\_huge\_pages.  In huge\_pmd\_unshare(), we use refcount
to check whether a pmd page table is shared.  The check is incorrect if
the refcount is increased by the above caller, and this can cause the page
table leaked:

 BUG: Bad page state in process sh  pfn:109324
 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x66 pfn:0x109324
 flags: 0x17ffff800000000(node=0\|zone=2\|lastcpupid=0xfffff)
 page\_type: f2(table)
 raw: 017ffff800000000 0000000000000000 0000000000000000 0000000000000000
 raw: 0000000000000066 0000000000000000 00000000f2000000 0000000000000000
 page dumped because: nonzero mapcount
 ...
 CPU: 31 UID: 0 PID: 7515 Comm: sh Kdump: loaded Tainted: G    B              6.13.0-rc2master+ \#7
 Tainted: \[B\]=BAD\_PAGE
 Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
 Call trace:
  show\_stack+0x20/0x38 (C)
  dump\_stack\_lvl+0x80/0xf8
  dump\_stack+0x18/0x28
  bad\_page+0x8c/0x130
  free\_page\_is\_bad\_report+0xa4/0xb0
  free\_unref\_page+0x3cc/0x620
  \_\_folio\_put+0xf4/0x158
  split\_huge\_pages\_all+0x1e0/0x3e8
  split\_huge\_pages\_write+0x25c/0x2d8
  full\_proxy\_write+0x64/0xd8
  vfs\_write+0xcc/0x280
  ksys\_write+0x70/0x110
  \_\_arm64\_sys\_write+0x24/0x38
  invoke\_syscall+0x50/0x120
  el0\_svc\_common.constprop.0+0xc8/0xf0
  do\_el0\_svc+0x24/0x38
  el0\_svc+0x34/0x128
  el0t\_64\_sync\_handler+0xc8/0xd0
  el0t\_64\_sync+0x190/0x198

The issue may be triggered by damon, offline\_page, page\_idle, etc, which
will increase the refcount of page table.

1. The page table itself will be discarded after reporting the
   "nonzero mapcount".

2. The HugeTLB page mapped by the page table miss freeing since we
   treat the page table as shared and a shared page table will not be
   unmapped.

Fix it by introducing independent PMD page table shared count.  As
described by comment, pt\_index/pt\_mm/pt\_frag\_refcount are used for s390
gmap, x86 pgds and powerpc, pt\_share\_count is used for x86/arm64/riscv
pmds, so we can reuse the field as pt\_share\_count.

## Affected and fixed versions

- Linux: \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 8410996eb6fea116fe1483ed977aacf580eee7b4; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 02333ac1c35370517a19a4a131332a9690c6a5c7; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 2e31443a0d18ae43b9d29e02bf0563f07772193d; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 59d9094df3d79443937add8700b2ef1a866b1081 (cvelist)
- Linux: 2.6.20 (cvelist)

## Mitigation

- Upgrade Linux to 59d9094df3d79443937add8700b2ef1a866b1081 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-57883. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57883.md
Affected: Linux >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 8410996eb6fea116fe1483ed977aacf580eee7b4; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 02333ac1c35370517a19a4a131332a9690c6a5c7; >= 39dde65c9940c97fcd178a3…
Fixed in: Linux 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133, Linux 8410996eb6fea116fe1483ed977aacf580eee7b4, Linux 02333ac1c35370517a19a4a131332a9690c6a5c7, Linux 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f, Linux 2e31443a0d18ae43b9d29e02bf0563f07772193d, Linux 59d9094df3d79443937add8700b2ef1a866b1081

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-57883 being exploited?

There is no confirmed exploitation: CVE-2024-57883 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-57883?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-57883?

Linux \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 8410996eb6fea116fe1483ed977aacf580eee7b4; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 02333ac1c35370517a19a4a131332a9690c6a5c7; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 2e31443a0d18ae43b9d29e02bf0563f07772193d; \>= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, \< 59d9094df3d79443937add8700b2ef1a866b1081; Linux 2.6.20.

### Is there a fix for CVE-2024-57883?

Yes. Fixed in Linux 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133, Linux 8410996eb6fea116fe1483ed977aacf580eee7b4, Linux 02333ac1c35370517a19a4a131332a9690c6a5c7, Linux 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f, Linux 2e31443a0d18ae43b9d29e02bf0563f07772193d, Linux 59d9094df3d79443937add8700b2ef1a866b1081. Upgrade Linux to 59d9094df3d79443937add8700b2ef1a866b1081 or later.

### How do I check if I'm affected by CVE-2024-57883?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133>
- patch: <https://git.kernel.org/stable/c/8410996eb6fea116fe1483ed977aacf580eee7b4>
- patch: <https://git.kernel.org/stable/c/02333ac1c35370517a19a4a131332a9690c6a5c7>
- patch: <https://git.kernel.org/stable/c/56b274473d6e7e7375f2d0a2b4aca11d67c6b52f>
- patch: <https://git.kernel.org/stable/c/2e31443a0d18ae43b9d29e02bf0563f07772193d>
- patch: <https://git.kernel.org/stable/c/59d9094df3d79443937add8700b2ef1a866b1081>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-57883>

HTML: <https://flawdb.com/CVE-2024-57883> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-57883>
