# CVE-2026-46031: net: ks8851: Reinstate disabling of BHs around IRQ handler

> 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.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-05-27T12:56:40.357Z
- **Modified:** 2026-08-05T12:29:14.460Z

## Who should check

- Anyone running Linux \>= 8a3ff43dcbab7c96f9e8cf2bd1049ab8d6e59545, \< 1962027a6d223f90df8b372929f9d1a8d321ad6a; \>= ae87f661f3c1a3134a7ed86ab69bf9f12af88993, \< 640a7631d31db87d5fa1b34cea44a99b6e78854b; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 518040324067d8efaa2da1992297b7e7bf5640f4; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< be8aad558b4675f45b43080f81a9ffdeddea73a5; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 21f1707a8e978558dcb11b053855521e32ac0eec; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 5c9fcac3c872224316714d0d8914d9af16c76a6d; 7e2901a2a9195da76111f351584bf77552a038f0; \>= 6.1.91, \< 6.1.175; \>= 6.6.31, \< 6.6.140; \>= 6.8.10, \< 6.9
- Anyone running Linux 6.9

## Description

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

net: ks8851: Reinstate disabling of BHs around IRQ handler

If the driver executes ks8851\_irq() AND a TX packet has been sent, then
the driver enables TX queue via netif\_wake\_queue() which schedules TX
softirq to queue packets for this device.

If CONFIG\_PREEMPT\_RT=y is set AND a packet has also been received by
the MAC, then ks8851\_rx\_pkts() calls netdev\_alloc\_skb\_ip\_align() to
allocate SKBs for the received packets. If netdev\_alloc\_skb\_ip\_align()
is called with BH enabled, then local\_bh\_enable() at the end of
netdev\_alloc\_skb\_ip\_align() will trigger the pending softirq processing,
which may ultimately call the .xmit callback ks8851\_start\_xmit\_par().
The ks8851\_start\_xmit\_par() will try to lock struct ks8851\_net\_par
.lock spinlock, which is already locked by ks8851\_irq() from which
ks8851\_start\_xmit\_par() was called. This leads to a deadlock, which
is reported by the kernel, including a trace listed below.

If CONFIG\_PREEMPT\_RT is not set, then since commit 0913ec336a6c0
("net: ks8851: Fix deadlock with the SPI chip variant") the deadlock
can also be triggered without received packet in the RX FIFO. The
pending softirqs will be processed on return from
spin\_unlock\_bh(&ks-\>statelock) in ks8851\_irq(), which triggers the
deadlock as well.

Fix the problem by disabling BH around critical sections, including the
IRQ handler, thus preventing the net\_tx\_action() softirq from triggering
during these critical sections. The net\_tx\_action() softirq is triggered
once BH are re-enabled and at the end of the IRQ handler, once all the
other IRQ handler actions have been completed.

 \_\_schedule from schedule\_rtlock+0x1c/0x34
 schedule\_rtlock from rtlock\_slowlock\_locked+0x548/0x904
 rtlock\_slowlock\_locked from rt\_spin\_lock+0x60/0x9c
 rt\_spin\_lock from ks8851\_start\_xmit\_par+0x74/0x1a8
 ks8851\_start\_xmit\_par from netdev\_start\_xmit+0x20/0x44
 netdev\_start\_xmit from dev\_hard\_start\_xmit+0xd0/0x188
 dev\_hard\_start\_xmit from sch\_direct\_xmit+0xb8/0x25c
 sch\_direct\_xmit from \_\_qdisc\_run+0x1f8/0x4ec
 \_\_qdisc\_run from qdisc\_run+0x1c/0x28
 qdisc\_run from net\_tx\_action+0x1f0/0x268
 net\_tx\_action from handle\_softirqs+0x1a4/0x270
 handle\_softirqs from \_\_local\_bh\_enable\_ip+0xcc/0xe0
 \_\_local\_bh\_enable\_ip from \_\_alloc\_skb+0xd8/0x128
 \_\_alloc\_skb from \_\_netdev\_alloc\_skb+0x3c/0x19c
 \_\_netdev\_alloc\_skb from ks8851\_irq+0x388/0x4d4
 ks8851\_irq from irq\_thread\_fn+0x24/0x64
 irq\_thread\_fn from irq\_thread+0x178/0x28c
 irq\_thread from kthread+0x12c/0x138
 kthread from ret\_from\_fork+0x14/0x28

## Affected and fixed versions

- Linux: \>= 8a3ff43dcbab7c96f9e8cf2bd1049ab8d6e59545, \< 1962027a6d223f90df8b372929f9d1a8d321ad6a; \>= ae87f661f3c1a3134a7ed86ab69bf9f12af88993, \< 640a7631d31db87d5fa1b34cea44a99b6e78854b; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 518040324067d8efaa2da1992297b7e7bf5640f4; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< be8aad558b4675f45b43080f81a9ffdeddea73a5; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 21f1707a8e978558dcb11b053855521e32ac0eec; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 5c9fcac3c872224316714d0d8914d9af16c76a6d; 7e2901a2a9195da76111f351584bf77552a038f0; \>= 6.1.91, \< 6.1.175; \>= 6.6.31, \< 6.6.140; \>= 6.8.10, \< 6.9 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46031.md
Affected: Linux >= 8a3ff43dcbab7c96f9e8cf2bd1049ab8d6e59545, < 1962027a6d223f90df8b372929f9d1a8d321ad6a; >= ae87f661f3c1a3134a7ed86ab69bf9f12af88993, < 640a7631d31db87d5fa1b34cea44a99b6e78854b; >= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, < 518040324067d8efaa2da1992297b7e7bf5640f4; >= e0863634bf9f7cf36291ebb…
Fixed in: Linux 1962027a6d223f90df8b372929f9d1a8d321ad6a, Linux 640a7631d31db87d5fa1b34cea44a99b6e78854b, Linux 518040324067d8efaa2da1992297b7e7bf5640f4, Linux 21f1707a8e978558dcb11b053855521e32ac0eec, Linux 5c9fcac3c872224316714d0d8914d9af16c76a6d, Linux 6.1.175, Linux 6.6.140, Linux 6.9

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-2026-46031 being exploited?

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

### How serious is CVE-2026-46031?

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

### Which versions are affected by CVE-2026-46031?

Linux \>= 8a3ff43dcbab7c96f9e8cf2bd1049ab8d6e59545, \< 1962027a6d223f90df8b372929f9d1a8d321ad6a; \>= ae87f661f3c1a3134a7ed86ab69bf9f12af88993, \< 640a7631d31db87d5fa1b34cea44a99b6e78854b; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 518040324067d8efaa2da1992297b7e7bf5640f4; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< be8aad558b4675f45b43080f81a9ffdeddea73a5; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 21f1707a8e978558dcb11b053855521e32ac0eec; \>= e0863634bf9f7cf36291ebb5bfa2d16632f79c49, \< 5c9fcac3c872224316714d0d8914d9af16c76a6d; 7e2901a2a9195da76111f351584bf77552a038f0; \>= 6.1.91, \< 6.1.175; \>= 6.6.31, \< 6.6.140; \>= 6.8.10, \< 6.9; Linux 6.9.

### Is there a fix for CVE-2026-46031?

Yes. Fixed in Linux 1962027a6d223f90df8b372929f9d1a8d321ad6a, Linux 640a7631d31db87d5fa1b34cea44a99b6e78854b, Linux 518040324067d8efaa2da1992297b7e7bf5640f4, Linux 21f1707a8e978558dcb11b053855521e32ac0eec, Linux 5c9fcac3c872224316714d0d8914d9af16c76a6d, Linux 6.1.175, Linux 6.6.140, Linux 6.9. Upgrade Linux to 6.9 or later.

### How do I check if I'm affected by CVE-2026-46031?

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/1962027a6d223f90df8b372929f9d1a8d321ad6a>
- patch: <https://git.kernel.org/stable/c/640a7631d31db87d5fa1b34cea44a99b6e78854b>
- patch: <https://git.kernel.org/stable/c/518040324067d8efaa2da1992297b7e7bf5640f4>
- patch: <https://git.kernel.org/stable/c/be8aad558b4675f45b43080f81a9ffdeddea73a5>
- patch: <https://git.kernel.org/stable/c/21f1707a8e978558dcb11b053855521e32ac0eec>
- patch: <https://git.kernel.org/stable/c/5c9fcac3c872224316714d0d8914d9af16c76a6d>

## 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-2026-46031>

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