# CVE-2024-26688: fs,hugetlb: fix NULL pointer dereference in hugetlbs\_fill\_super

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-03T14:54:49.964Z
- **Modified:** 2026-06-17T07:18:06.040Z

## Who should check

- Anyone running Linux \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 1dde8ef4b7a749ae1bc73617c91775631d167557; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 80d852299987a8037be145a94f41874228f1a773; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 22850c9950a4e43a67299755d11498f3292d02ff; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 2e2c07104b4904aed1389a59b25799b95a85b5b9; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 13c5a9fb07105557a1fa9efdb4f23d7ef30b7274; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< ec78418801ef7b0c22cd6a30145ec480dd48db39; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 79d72c68c58784a3e1cd2378669d51bfd0cb7498
- Anyone running Linux 5.1

## Description

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

fs,hugetlb: fix NULL pointer dereference in hugetlbs\_fill\_super

When configuring a hugetlb filesystem via the fsconfig() syscall, there is
a possible NULL dereference in hugetlbfs\_fill\_super() caused by assigning
NULL to ctx-\>hstate in hugetlbfs\_parse\_param() when the requested pagesize
is non valid.

E.g: Taking the following steps:

     fd = fsopen("hugetlbfs", FSOPEN\_CLOEXEC);
     fsconfig(fd, FSCONFIG\_SET\_STRING, "pagesize", "1024", 0);
     fsconfig(fd, FSCONFIG\_CMD\_CREATE, NULL, NULL, 0);

Given that the requested "pagesize" is invalid, ctxt-\>hstate will be replaced
with NULL, losing its previous value, and we will print an error:

 ...
 ...
 case Opt\_pagesize:
 ps = memparse(param-\>string, &rest);
 ctx-\>hstate = h;
 if (!ctx-\>hstate) {
         pr\_err("Unsupported page size %lu MB\\n", ps / SZ\_1M);
         return -EINVAL;
 }
 return 0;
 ...
 ...

This is a problem because later on, we will dereference ctxt-\>hstate in
hugetlbfs\_fill\_super()

 ...
 ...
 sb-\>s\_blocksize = huge\_page\_size(ctx-\>hstate);
 ...
 ...

Causing below Oops.

Fix this by replacing cxt-\>hstate value only when then pagesize is known
to be valid.

 kernel: hugetlbfs: Unsupported page size 0 MB
 kernel: BUG: kernel NULL pointer dereference, address: 0000000000000028
 kernel: \#PF: supervisor read access in kernel mode
 kernel: \#PF: error\_code(0x0000) - not-present page
 kernel: PGD 800000010f66c067 P4D 800000010f66c067 PUD 1b22f8067 PMD 0
 kernel: Oops: 0000 \[\#1\] PREEMPT SMP PTI
 kernel: CPU: 4 PID: 5659 Comm: syscall Tainted: G            E      6.8.0-rc2-default+ \#22 5a47c3fef76212addcc6eb71344aabc35190ae8f
 kernel: Hardware name: Intel Corp. GROVEPORT/GROVEPORT, BIOS GVPRCRB1.86B.0016.D04.1705030402 05/03/2017
 kernel: RIP: 0010:hugetlbfs\_fill\_super+0xb4/0x1a0
 kernel: Code: 48 8b 3b e8 3e c6 ed ff 48 85 c0 48 89 45 20 0f 84 d6 00 00 00 48 b8 ff ff ff ff ff ff ff 7f 4c 89 e7 49 89 44 24 20 48 8b 03 \<8b\> 48 28 b8 00 10 00 00 48 d3 e0 49 89 44 24 18 48 8b 03 8b 40 28
 kernel: RSP: 0018:ffffbe9960fcbd48 EFLAGS: 00010246
 kernel: RAX: 0000000000000000 RBX: ffff9af5272ae780 RCX: 0000000000372004
 kernel: RDX: ffffffffffffffff RSI: ffffffffffffffff RDI: ffff9af555e9b000
 kernel: RBP: ffff9af52ee66b00 R08: 0000000000000040 R09: 0000000000370004
 kernel: R10: ffffbe9960fcbd48 R11: 0000000000000040 R12: ffff9af555e9b000
 kernel: R13: ffffffffa66b86c0 R14: ffff9af507d2f400 R15: ffff9af507d2f400
 kernel: FS:  00007ffbc0ba4740(0000) GS:ffff9b0bd7000000(0000) knlGS:0000000000000000
 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 kernel: CR2: 0000000000000028 CR3: 00000001b1ee0000 CR4: 00000000001506f0
 kernel: Call Trace:
 kernel:  \<TASK\>
 kernel:  ? \_\_die\_body+0x1a/0x60
 kernel:  ? page\_fault\_oops+0x16f/0x4a0
 kernel:  ? search\_bpf\_extables+0x65/0x70
 kernel:  ? fixup\_exception+0x22/0x310
 kernel:  ? exc\_page\_fault+0x69/0x150
 kernel:  ? asm\_exc\_page\_fault+0x22/0x30
 kernel:  ? \_\_pfx\_hugetlbfs\_fill\_super+0x10/0x10
 kernel:  ? hugetlbfs\_fill\_super+0xb4/0x1a0
 kernel:  ? hugetlbfs\_fill\_super+0x28/0x1a0
 kernel:  ? \_\_pfx\_hugetlbfs\_fill\_super+0x10/0x10
 kernel:  vfs\_get\_super+0x40/0xa0
 kernel:  ? \_\_pfx\_bpf\_lsm\_capable+0x10/0x10
 kernel:  vfs\_get\_tree+0x25/0xd0
 kernel:  vfs\_cmd\_create+0x64/0xe0
 kernel:  \_\_x64\_sys\_fsconfig+0x395/0x410
 kernel:  do\_syscall\_64+0x80/0x160
 kernel:  ? syscall\_exit\_to\_user\_mode+0x82/0x240
 kernel:  ? do\_syscall\_64+0x8d/0x160
 kernel:  ? syscall\_exit\_to\_user\_mode+0x82/0x240
 kernel:  ? do\_syscall\_64+0x8d/0x160
 kernel:  ? exc\_page\_fault+0x69/0x150
 kernel:  entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76
 kernel: RIP: 0033:0x7ffbc0cb87c9
 kernel: Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 96 0d 00 f7 d8 64 89 01 48
 kernel: RSP: 002b:00007ffc29d2f388 EFLAGS: 00000206 ORIG\_RAX: 00000000000001af
 kernel: RAX: fffffffffff
---truncated---

## Affected and fixed versions

- Linux: \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 1dde8ef4b7a749ae1bc73617c91775631d167557; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 80d852299987a8037be145a94f41874228f1a773; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 22850c9950a4e43a67299755d11498f3292d02ff; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 2e2c07104b4904aed1389a59b25799b95a85b5b9; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 13c5a9fb07105557a1fa9efdb4f23d7ef30b7274; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< ec78418801ef7b0c22cd6a30145ec480dd48db39; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 79d72c68c58784a3e1cd2378669d51bfd0cb7498 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 79d72c68c58784a3e1cd2378669d51bfd0cb7498 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-26688. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26688.md
Affected: Linux >= 32021982a324dce93b4ae00c06213bf45fb319c8, < 1dde8ef4b7a749ae1bc73617c91775631d167557; >= 32021982a324dce93b4ae00c06213bf45fb319c8, < 80d852299987a8037be145a94f41874228f1a773; >= 32021982a324dce93b4ae00c06213bf45fb319c8, < 22850c9950a4e43a67299755d11498f3292d02ff; >= 32021982a324dce93b4ae00…
Fixed in: Linux 1dde8ef4b7a749ae1bc73617c91775631d167557, Linux 80d852299987a8037be145a94f41874228f1a773, Linux 22850c9950a4e43a67299755d11498f3292d02ff, Linux 2e2c07104b4904aed1389a59b25799b95a85b5b9, Linux 13c5a9fb07105557a1fa9efdb4f23d7ef30b7274, Linux 79d72c68c58784a3e1cd2378669d51bfd0cb7498

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-26688 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 1dde8ef4b7a749ae1bc73617c91775631d167557; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 80d852299987a8037be145a94f41874228f1a773; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 22850c9950a4e43a67299755d11498f3292d02ff; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 2e2c07104b4904aed1389a59b25799b95a85b5b9; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 13c5a9fb07105557a1fa9efdb4f23d7ef30b7274; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< ec78418801ef7b0c22cd6a30145ec480dd48db39; \>= 32021982a324dce93b4ae00c06213bf45fb319c8, \< 79d72c68c58784a3e1cd2378669d51bfd0cb7498; Linux 5.1.

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

Yes. Fixed in Linux 1dde8ef4b7a749ae1bc73617c91775631d167557, Linux 80d852299987a8037be145a94f41874228f1a773, Linux 22850c9950a4e43a67299755d11498f3292d02ff, Linux 2e2c07104b4904aed1389a59b25799b95a85b5b9, Linux 13c5a9fb07105557a1fa9efdb4f23d7ef30b7274, Linux 79d72c68c58784a3e1cd2378669d51bfd0cb7498. Upgrade Linux to 79d72c68c58784a3e1cd2378669d51bfd0cb7498 or later.

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

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/1dde8ef4b7a749ae1bc73617c91775631d167557>
- patch: <https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773>
- patch: <https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff>
- patch: <https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9>
- patch: <https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274>
- patch: <https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39>
- patch: <https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.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-26688>

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