# CVE-2024-42252: closures: Change BUG\_ON() to WARN\_ON()

> 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-617
- **Published:** 2024-08-08T08:46:28.562Z
- **Modified:** 2026-06-17T07:49:06.583Z

## Who should check

- Anyone running Linux \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< c894a74756478bb7aec894bcc513add3d554c0cf; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< ecb4aaa658da760fb83afd79cc5fd4360aa60635; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 5d85f2ab79d5918a66539ebf046c099f7448db8d; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 339b84ab6b1d66900c27bd999271cb2ae40ce812
- Anyone running Linux 3.10

## Description

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

closures: Change BUG\_ON() to WARN\_ON()

If a BUG\_ON() can be hit in the wild, it shouldn't be a BUG\_ON()

For reference, this has popped up once in the CI, and we'll need more
info to debug it:

03240 ------------\[ cut here \]------------
03240 kernel BUG at lib/closure.c:21!
03240 kernel BUG at lib/closure.c:21!
03240 Internal error: Oops - BUG: 00000000f2000800 \[\#1\] SMP
03240 Modules linked in:
03240 CPU: 15 PID: 40534 Comm: kworker/u80:1 Not tainted 6.10.0-rc4-ktest-ga56da69799bd \#25570
03240 Hardware name: linux,dummy-virt (DT)
03240 Workqueue: btree\_update btree\_interior\_update\_work
03240 pstate: 00001005 (nzcv daif -PAN -UAO -TCO -DIT +SSBS BTYPE=--)
03240 pc : closure\_put+0x224/0x2a0
03240 lr : closure\_put+0x24/0x2a0
03240 sp : ffff0000d12071c0
03240 x29: ffff0000d12071c0 x28: dfff800000000000 x27: ffff0000d1207360
03240 x26: 0000000000000040 x25: 0000000000000040 x24: 0000000000000040
03240 x23: ffff0000c1f20180 x22: 0000000000000000 x21: ffff0000c1f20168
03240 x20: 0000000040000000 x19: ffff0000c1f20140 x18: 0000000000000001
03240 x17: 0000000000003aa0 x16: 0000000000003ad0 x15: 1fffe0001c326974
03240 x14: 0000000000000a1e x13: 0000000000000000 x12: 1fffe000183e402d
03240 x11: ffff6000183e402d x10: dfff800000000000 x9 : ffff6000183e402e
03240 x8 : 0000000000000001 x7 : 00009fffe7c1bfd3 x6 : ffff0000c1f2016b
03240 x5 : ffff0000c1f20168 x4 : ffff6000183e402e x3 : ffff800081391954
03240 x2 : 0000000000000001 x1 : 0000000000000000 x0 : 00000000a8000000
03240 Call trace:
03240  closure\_put+0x224/0x2a0
03240  bch2\_check\_for\_deadlock+0x910/0x1028
03240  bch2\_six\_check\_for\_deadlock+0x1c/0x30
03240  six\_lock\_slowpath.isra.0+0x29c/0xed0
03240  six\_lock\_ip\_waiter+0xa8/0xf8
03240  \_\_bch2\_btree\_node\_lock\_write+0x14c/0x298
03240  bch2\_trans\_lock\_write+0x6d4/0xb10
03240  \_\_bch2\_trans\_commit+0x135c/0x5520
03240  btree\_interior\_update\_work+0x1248/0x1c10
03240  process\_scheduled\_works+0x53c/0xd90
03240  worker\_thread+0x370/0x8c8
03240  kthread+0x258/0x2e8
03240  ret\_from\_fork+0x10/0x20
03240 Code: aa1303e0 d63f0020 a94363f7 17ffff8c (d4210000)
03240 ---\[ end trace 0000000000000000 \]---
03240 Kernel panic - not syncing: Oops - BUG: Fatal exception
03240 SMP: stopping secondary CPUs
03241 SMP: failed to stop secondary CPUs 13,15
03241 Kernel Offset: disabled
03241 CPU features: 0x00,00000003,80000008,4240500b
03241 Memory Limit: none
03241 ---\[ end Kernel panic - not syncing: Oops - BUG: Fatal exception \]---
03246 ========= FAILED TIMEOUT copygc\_torture\_no\_checksum in 7200s

## Affected and fixed versions

- Linux: \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< c894a74756478bb7aec894bcc513add3d554c0cf; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< ecb4aaa658da760fb83afd79cc5fd4360aa60635; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 5d85f2ab79d5918a66539ebf046c099f7448db8d; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 339b84ab6b1d66900c27bd999271cb2ae40ce812 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-42252.md
Affected: Linux >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < c894a74756478bb7aec894bcc513add3d554c0cf; >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < ecb4aaa658da760fb83afd79cc5fd4360aa60635; >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 5d85f2ab79d5918a66539ebf046c099f7448db8d; >= cafe563591446cf80bfbc2f…
Fixed in: Linux 5d85f2ab79d5918a66539ebf046c099f7448db8d, Linux 339b84ab6b1d66900c27bd999271cb2ae40ce812

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

There is no confirmed exploitation: CVE-2024-42252 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-42252?

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

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

Linux \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< c894a74756478bb7aec894bcc513add3d554c0cf; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< ecb4aaa658da760fb83afd79cc5fd4360aa60635; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 5d85f2ab79d5918a66539ebf046c099f7448db8d; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 339b84ab6b1d66900c27bd999271cb2ae40ce812; Linux 3.10.

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

Yes. Fixed in Linux 5d85f2ab79d5918a66539ebf046c099f7448db8d, Linux 339b84ab6b1d66900c27bd999271cb2ae40ce812. Upgrade Linux to 339b84ab6b1d66900c27bd999271cb2ae40ce812 or later.

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

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/5d85f2ab79d5918a66539ebf046c099f7448db8d>
- patch: <https://git.kernel.org/stable/c/339b84ab6b1d66900c27bd999271cb2ae40ce812>
- other: <https://git.kernel.org/stable/c/c894a74756478bb7aec894bcc513add3d554c0cf>
- other: <https://git.kernel.org/stable/c/ecb4aaa658da760fb83afd79cc5fd4360aa60635>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.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-42252>

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