# CVE-2024-41000: block/ioctl: prefer different overflow check

> 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, NVD) `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.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2024-07-12T12:37:41.189Z
- **Modified:** 2026-10-15T01:18:40.570Z

## Who should check

- Anyone running Linux \>= 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, \< 58706e482bf45c4db48b0c53aba2468c97adda24; \>= 5010c27120962c85d2f421d2cf211791c9603503, \< 3220c90f4dbdc6d20d0608b164d964434a810d66; \>= ef31cc87794731ffcb578a195a2c47d744e25fb8, \< 61ec76ec930709b7bcd69029ef1fe90491f20cf9; \>= cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8, \< fd841ee01fb4a79cb7f5cc424b5c96c3a73b2d1e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< 54160fb1db2de367485f21e30196c42f7ee0be4e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< ccb326b5f9e623eb7f130fbbf2505ec0e2dcaff9; bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; \>= 5.10.215, \< 5.10.221; \>= 5.15.148, \< 5.15.162; \>= 6.1.75, \< 6.1.96; …
- Anyone running Linux 6.8

## Description

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

block/ioctl: prefer different overflow check

Running syzkaller with the newly reintroduced signed integer overflow
sanitizer shows this report:

\[   62.982337\] ------------\[ cut here \]------------
\[   62.985692\] cgroup: Invalid name
\[   62.986211\] UBSAN: signed-integer-overflow in ../block/ioctl.c:36:46
\[   62.989370\] 9pnet\_fd: p9\_fd\_create\_tcp (7343): problem connecting socket to 127.0.0.1
\[   62.992992\] 9223372036854775807 + 4095 cannot be represented in type 'long long'
\[   62.997827\] 9pnet\_fd: p9\_fd\_create\_tcp (7345): problem connecting socket to 127.0.0.1
\[   62.999369\] random: crng reseeded on system resumption
\[   63.000634\] GUP no longer grows the stack in syz-executor.2 (7353): 20002000-20003000 (20001000)
\[   63.000668\] CPU: 0 PID: 7353 Comm: syz-executor.2 Not tainted 6.8.0-rc2-00035-gb3ef86b5a957 \#1
\[   63.000677\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[   63.000682\] Call Trace:
\[   63.000686\]  \<TASK\>
\[   63.000731\]  dump\_stack\_lvl+0x93/0xd0
\[   63.000919\]  \_\_get\_user\_pages+0x903/0xd30
\[   63.001030\]  \_\_gup\_longterm\_locked+0x153e/0x1ba0
\[   63.001041\]  ? \_raw\_read\_unlock\_irqrestore+0x17/0x50
\[   63.001072\]  ? try\_get\_folio+0x29c/0x2d0
\[   63.001083\]  internal\_get\_user\_pages\_fast+0x1119/0x1530
\[   63.001109\]  iov\_iter\_extract\_pages+0x23b/0x580
\[   63.001206\]  bio\_iov\_iter\_get\_pages+0x4de/0x1220
\[   63.001235\]  iomap\_dio\_bio\_iter+0x9b6/0x1410
\[   63.001297\]  \_\_iomap\_dio\_rw+0xab4/0x1810
\[   63.001316\]  iomap\_dio\_rw+0x45/0xa0
\[   63.001328\]  ext4\_file\_write\_iter+0xdde/0x1390
\[   63.001372\]  vfs\_write+0x599/0xbd0
\[   63.001394\]  ksys\_write+0xc8/0x190
\[   63.001403\]  do\_syscall\_64+0xd4/0x1b0
\[   63.001421\]  ? arch\_exit\_to\_user\_mode\_prepare+0x3a/0x60
\[   63.001479\]  entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77
\[   63.001535\] RIP: 0033:0x7f7fd3ebf539
\[   63.001551\] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 14 00 00 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 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
\[   63.001562\] RSP: 002b:00007f7fd32570c8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
\[   63.001584\] RAX: ffffffffffffffda RBX: 00007f7fd3ff3f80 RCX: 00007f7fd3ebf539
\[   63.001590\] RDX: 4db6d1e4f7e43360 RSI: 0000000020000000 RDI: 0000000000000004
\[   63.001595\] RBP: 00007f7fd3f1e496 R08: 0000000000000000 R09: 0000000000000000
\[   63.001599\] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
\[   63.001604\] R13: 0000000000000006 R14: 00007f7fd3ff3f80 R15: 00007ffd415ad2b8
...
\[   63.018142\] ---\[ end trace \]---

Historically, the signed integer overflow sanitizer did not work in the
kernel due to its interaction with \`-fwrapv\` but this has since been
changed \[1\] in the newest version of Clang; It was re-enabled in the
kernel with Commit 557f8c582a9ba8ab ("ubsan: Reintroduce signed overflow
sanitizer").

Let's rework this overflow checking logic to not actually perform an
overflow during the check itself, thus avoiding the UBSAN splat.

\[1\]: https://github.com/llvm/llvm-project/pull/82432

## Affected and fixed versions

- Linux: \>= 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, \< 58706e482bf45c4db48b0c53aba2468c97adda24; \>= 5010c27120962c85d2f421d2cf211791c9603503, \< 3220c90f4dbdc6d20d0608b164d964434a810d66; \>= ef31cc87794731ffcb578a195a2c47d744e25fb8, \< 61ec76ec930709b7bcd69029ef1fe90491f20cf9; \>= cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8, \< fd841ee01fb4a79cb7f5cc424b5c96c3a73b2d1e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< 54160fb1db2de367485f21e30196c42f7ee0be4e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< ccb326b5f9e623eb7f130fbbf2505ec0e2dcaff9; bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; \>= 5.10.215, \< 5.10.221; \>= 5.15.148, \< 5.15.162; \>= 6.1.75, \< 6.1.96; … (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-41000.md
Affected: Linux >= 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, < 58706e482bf45c4db48b0c53aba2468c97adda24; >= 5010c27120962c85d2f421d2cf211791c9603503, < 3220c90f4dbdc6d20d0608b164d964434a810d66; >= ef31cc87794731ffcb578a195a2c47d744e25fb8, < 61ec76ec930709b7bcd69029ef1fe90491f20cf9; >= cb16cc1abda18a9514106d2…
Fixed in: Linux 58706e482bf45c4db48b0c53aba2468c97adda24, Linux 3220c90f4dbdc6d20d0608b164d964434a810d66, Linux 61ec76ec930709b7bcd69029ef1fe90491f20cf9, Linux 54160fb1db2de367485f21e30196c42f7ee0be4e, Linux 5.10.221, Linux 5.15.162, Linux 6.1.96

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

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

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

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

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

Linux \>= 8f6dfa1f1efe6dcca2d43e575491d8fcbe922f62, \< 58706e482bf45c4db48b0c53aba2468c97adda24; \>= 5010c27120962c85d2f421d2cf211791c9603503, \< 3220c90f4dbdc6d20d0608b164d964434a810d66; \>= ef31cc87794731ffcb578a195a2c47d744e25fb8, \< 61ec76ec930709b7bcd69029ef1fe90491f20cf9; \>= cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8, \< fd841ee01fb4a79cb7f5cc424b5c96c3a73b2d1e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< 54160fb1db2de367485f21e30196c42f7ee0be4e; \>= 6f64f866aa1ae6975c95d805ed51d7e9433a0016, \< ccb326b5f9e623eb7f130fbbf2505ec0e2dcaff9; bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5; \>= 5.10.215, \< 5.10.221; \>= 5.15.148, \< 5.15.162; \>= 6.1.75, \< 6.1.96; …; Linux 6.8.

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

Yes. Fixed in Linux 58706e482bf45c4db48b0c53aba2468c97adda24, Linux 3220c90f4dbdc6d20d0608b164d964434a810d66, Linux 61ec76ec930709b7bcd69029ef1fe90491f20cf9, Linux 54160fb1db2de367485f21e30196c42f7ee0be4e, Linux 5.10.221, Linux 5.15.162, Linux 6.1.96. No fix listed yet: follow the vendor advisory.

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

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/58706e482bf45c4db48b0c53aba2468c97adda24>
- patch: <https://git.kernel.org/stable/c/3220c90f4dbdc6d20d0608b164d964434a810d66>
- patch: <https://git.kernel.org/stable/c/61ec76ec930709b7bcd69029ef1fe90491f20cf9>
- patch: <https://git.kernel.org/stable/c/fd841ee01fb4a79cb7f5cc424b5c96c3a73b2d1e>
- patch: <https://git.kernel.org/stable/c/54160fb1db2de367485f21e30196c42f7ee0be4e>
- patch: <https://git.kernel.org/stable/c/ccb326b5f9e623eb7f130fbbf2505ec0e2dcaff9>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.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-41000>

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