# CVE-2024-41036: net: ks8851: Fix deadlock with the SPI chip variant

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2024-07-29T14:31:50.669Z
- **Modified:** 2026-08-05T11:34:52.816Z

## Who should check

- Anyone running Linux \>= 1092525155eaad5c69ca9f3b6f3e7895a9424d66, \< a0c69c492f4a8fad52f0a97565241c926160c9a4; \>= 30302b41ffdcd194bef27fb3b1a9f2ca53dedb27, \< 80ece00137300d74642f2038c8fe5440deaf9f05; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c; 786788bb1396ed5ea27e39c4933f59f4e52004e4; 7c25c5d7274631b655f0f9098a16241fcd5db57b; \>= 6.1.70, \< 6.1.100; \>= 6.6.9, \< 6.6.41; \>= 5.10.206, \< 5.11; \>= 5.15.146, \< 5.16
- Anyone running Linux 6.7

## Description

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

net: ks8851: Fix deadlock with the SPI chip variant

When SMP is enabled and spinlocks are actually functional then there is
a deadlock with the 'statelock' spinlock between ks8851\_start\_xmit\_spi
and ks8851\_irq:

    watchdog: BUG: soft lockup - CPU\#0 stuck for 27s!
    call trace:
      queued\_spin\_lock\_slowpath+0x100/0x284
      do\_raw\_spin\_lock+0x34/0x44
      ks8851\_start\_xmit\_spi+0x30/0xb8
      ks8851\_start\_xmit+0x14/0x20
      netdev\_start\_xmit+0x40/0x6c
      dev\_hard\_start\_xmit+0x6c/0xbc
      sch\_direct\_xmit+0xa4/0x22c
      \_\_qdisc\_run+0x138/0x3fc
      qdisc\_run+0x24/0x3c
      net\_tx\_action+0xf8/0x130
      handle\_softirqs+0x1ac/0x1f0
      \_\_do\_softirq+0x14/0x20
      \_\_\_\_do\_softirq+0x10/0x1c
      call\_on\_irq\_stack+0x3c/0x58
      do\_softirq\_own\_stack+0x1c/0x28
      \_\_irq\_exit\_rcu+0x54/0x9c
      irq\_exit\_rcu+0x10/0x1c
      el1\_interrupt+0x38/0x50
      el1h\_64\_irq\_handler+0x18/0x24
      el1h\_64\_irq+0x64/0x68
      \_\_netif\_schedule+0x6c/0x80
      netif\_tx\_wake\_queue+0x38/0x48
      ks8851\_irq+0xb8/0x2c8
      irq\_thread\_fn+0x2c/0x74
      irq\_thread+0x10c/0x1b0
      kthread+0xc8/0xd8
      ret\_from\_fork+0x10/0x20

This issue has not been identified earlier because tests were done on
a device with SMP disabled and so spinlocks were actually NOPs.

Now use spin\_(un)lock\_bh for TX queue related locking to avoid execution
of softirq work synchronously that would lead to a deadlock.

## Affected and fixed versions

- Linux: \>= 1092525155eaad5c69ca9f3b6f3e7895a9424d66, \< a0c69c492f4a8fad52f0a97565241c926160c9a4; \>= 30302b41ffdcd194bef27fb3b1a9f2ca53dedb27, \< 80ece00137300d74642f2038c8fe5440deaf9f05; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c; 786788bb1396ed5ea27e39c4933f59f4e52004e4; 7c25c5d7274631b655f0f9098a16241fcd5db57b; \>= 6.1.70, \< 6.1.100; \>= 6.6.9, \< 6.6.41; \>= 5.10.206, \< 5.11; \>= 5.15.146, \< 5.16 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-41036.md
Affected: Linux >= 1092525155eaad5c69ca9f3b6f3e7895a9424d66, < a0c69c492f4a8fad52f0a97565241c926160c9a4; >= 30302b41ffdcd194bef27fb3b1a9f2ca53dedb27, < 80ece00137300d74642f2038c8fe5440deaf9f05; >= 3dc5d44545453de1de9c53cc529cc960a85933da, < 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0; >= 3dc5d44545453de1de9c53c…
Fixed in: Linux 80ece00137300d74642f2038c8fe5440deaf9f05, Linux 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0, Linux 0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c, Linux 6.1.100, Linux 6.6.41, Linux 5.11, Linux 5.16

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 1092525155eaad5c69ca9f3b6f3e7895a9424d66, \< a0c69c492f4a8fad52f0a97565241c926160c9a4; \>= 30302b41ffdcd194bef27fb3b1a9f2ca53dedb27, \< 80ece00137300d74642f2038c8fe5440deaf9f05; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0; \>= 3dc5d44545453de1de9c53cc529cc960a85933da, \< 0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c; 786788bb1396ed5ea27e39c4933f59f4e52004e4; 7c25c5d7274631b655f0f9098a16241fcd5db57b; \>= 6.1.70, \< 6.1.100; \>= 6.6.9, \< 6.6.41; \>= 5.10.206, \< 5.11; \>= 5.15.146, \< 5.16; Linux 6.7.

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

Yes. Fixed in Linux 80ece00137300d74642f2038c8fe5440deaf9f05, Linux 10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0, Linux 0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c, Linux 6.1.100, Linux 6.6.41, Linux 5.11, Linux 5.16. Upgrade Linux to 5.16 or later.

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

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/a0c69c492f4a8fad52f0a97565241c926160c9a4>
- patch: <https://git.kernel.org/stable/c/80ece00137300d74642f2038c8fe5440deaf9f05>
- patch: <https://git.kernel.org/stable/c/10fec0cd0e8f56ff06c46bb24254c7d8f8f2bbf0>
- patch: <https://git.kernel.org/stable/c/0913ec336a6c0c4a2b296bd9f74f8e41c4c83c8c>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/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-41036>

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