# CVE-2024-35971: net: ks8851: Handle softirqs at the end of IRQ thread to fix hang

> 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.87% (percentile 56, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-20T09:41:59.174Z
- **Modified:** 2026-08-05T11:31:19.610Z

## Who should check

- Anyone running Linux \>= 797047f875b5463719cc70ba213eb691d453c946, \< 492337a4fbd1421b42df684ee9b34be2a2722540; \>= 797047f875b5463719cc70ba213eb691d453c946, \< cba376eb036c2c20077b41d47b317d8218fe754f; \>= 797047f875b5463719cc70ba213eb691d453c946, \< 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b; \>= 797047f875b5463719cc70ba213eb691d453c946, \< be0384bf599cf1eb8d337517feeb732d71f75a6f
- Anyone running Linux 5.8

## Description

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

net: ks8851: Handle softirqs at the end of IRQ thread to fix hang

The ks8851\_irq() thread may call ks8851\_rx\_pkts() in case there are
any packets in the MAC FIFO, which calls netif\_rx(). This netif\_rx()
implementation is guarded by local\_bh\_disable() and local\_bh\_enable().
The local\_bh\_enable() may call do\_softirq() to run softirqs in case
any are pending. One of the softirqs is net\_rx\_action, which ultimately
reaches the driver .start\_xmit callback. If that happens, the system
hangs. The entire call chain is below:

ks8851\_start\_xmit\_par from netdev\_start\_xmit
netdev\_start\_xmit from dev\_hard\_start\_xmit
dev\_hard\_start\_xmit from sch\_direct\_xmit
sch\_direct\_xmit from \_\_dev\_queue\_xmit
\_\_dev\_queue\_xmit from \_\_neigh\_update
\_\_neigh\_update from neigh\_update
neigh\_update from arp\_process.constprop.0
arp\_process.constprop.0 from \_\_netif\_receive\_skb\_one\_core
\_\_netif\_receive\_skb\_one\_core from process\_backlog
process\_backlog from \_\_napi\_poll.constprop.0
\_\_napi\_poll.constprop.0 from net\_rx\_action
net\_rx\_action from \_\_do\_softirq
\_\_do\_softirq from call\_with\_stack
call\_with\_stack from do\_softirq
do\_softirq from \_\_local\_bh\_enable\_ip
\_\_local\_bh\_enable\_ip from netif\_rx
netif\_rx from ks8851\_irq
ks8851\_irq from irq\_thread\_fn
irq\_thread\_fn from irq\_thread
irq\_thread from kthread
kthread from ret\_from\_fork

The hang happens because ks8851\_irq() first locks a spinlock in
ks8851\_par.c ks8851\_lock\_par() spin\_lock\_irqsave(&ksp-\>lock, ...)
and with that spinlock locked, calls netif\_rx(). Once the execution
reaches ks8851\_start\_xmit\_par(), it calls ks8851\_lock\_par() again
which attempts to claim the already locked spinlock again, and the
hang happens.

Move the do\_softirq() call outside of the spinlock protected section
of ks8851\_irq() by disabling BHs around the entire spinlock protected
section of ks8851\_irq() handler. Place local\_bh\_enable() outside of
the spinlock protected section, so that it can trigger do\_softirq()
without the ks8851\_par.c ks8851\_lock\_par() spinlock being held, and
safely call ks8851\_start\_xmit\_par() without attempting to lock the
already locked spinlock.

Since ks8851\_irq() is protected by local\_bh\_disable()/local\_bh\_enable()
now, replace netif\_rx() with \_\_netif\_rx() which is not duplicating the
local\_bh\_disable()/local\_bh\_enable() calls.

## Affected and fixed versions

- Linux: \>= 797047f875b5463719cc70ba213eb691d453c946, \< 492337a4fbd1421b42df684ee9b34be2a2722540; \>= 797047f875b5463719cc70ba213eb691d453c946, \< cba376eb036c2c20077b41d47b317d8218fe754f; \>= 797047f875b5463719cc70ba213eb691d453c946, \< 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b; \>= 797047f875b5463719cc70ba213eb691d453c946, \< be0384bf599cf1eb8d337517feeb732d71f75a6f (cvelist)
- Linux: 5.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-35971. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35971.md
Affected: Linux >= 797047f875b5463719cc70ba213eb691d453c946, < 492337a4fbd1421b42df684ee9b34be2a2722540; >= 797047f875b5463719cc70ba213eb691d453c946, < cba376eb036c2c20077b41d47b317d8218fe754f; >= 797047f875b5463719cc70ba213eb691d453c946, < 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b; >= 797047f875b5463719cc70b…
Fixed in: Linux 492337a4fbd1421b42df684ee9b34be2a2722540, Linux 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b

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

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

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

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

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

Linux \>= 797047f875b5463719cc70ba213eb691d453c946, \< 492337a4fbd1421b42df684ee9b34be2a2722540; \>= 797047f875b5463719cc70ba213eb691d453c946, \< cba376eb036c2c20077b41d47b317d8218fe754f; \>= 797047f875b5463719cc70ba213eb691d453c946, \< 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b; \>= 797047f875b5463719cc70ba213eb691d453c946, \< be0384bf599cf1eb8d337517feeb732d71f75a6f; Linux 5.8.

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

Yes. Fixed in Linux 492337a4fbd1421b42df684ee9b34be2a2722540, Linux 49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b. No fix listed yet: follow the vendor advisory.

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

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/492337a4fbd1421b42df684ee9b34be2a2722540>
- patch: <https://git.kernel.org/stable/c/cba376eb036c2c20077b41d47b317d8218fe754f>
- patch: <https://git.kernel.org/stable/c/49d5d70538b6b8f2a3f8f1ac30c1f921d4a0929b>
- patch: <https://git.kernel.org/stable/c/be0384bf599cf1eb8d337517feeb732d71f75a6f>
- other: <http://www.openwall.com/lists/oss-security/2024/05/30/2>
- other: <http://www.openwall.com/lists/oss-security/2024/05/30/1>

## 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-35971>

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