# CVE-2025-68320: lan966x: Fix sleeping in atomic context

> 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.84% (percentile 55, 2026-11-26)
- **Published:** 2025-12-16T15:44:18.217Z
- **Modified:** 2026-10-30T13:18:20.000Z

## Who should check

- Anyone running Linux \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 5a5d2f7727752b64d13263eacd9f8d08a322e662; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 3ac743c60ec502163c435712d527eeced8d83348; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 0216721ce71252f60d89af49c8dff613358058d3
- Anyone running Linux 5.17

## Description

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

lan966x: Fix sleeping in atomic context

The following warning was seen when we try to connect using ssh to the device.

BUG: sleeping function called from invalid context at kernel/locking/mutex.c:575
in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 104, name: dropbear
preempt\_count: 1, expected: 0
INFO: lockdep is turned off.
CPU: 0 UID: 0 PID: 104 Comm: dropbear Tainted: G        W           6.18.0-rc2-00399-g6f1ab1b109b9-dirty \#530 NONE
Tainted: \[W\]=WARN
Hardware name: Generic DT based system
Call trace:
 unwind\_backtrace from show\_stack+0x10/0x14
 show\_stack from dump\_stack\_lvl+0x7c/0xac
 dump\_stack\_lvl from \_\_might\_resched+0x16c/0x2b0
 \_\_might\_resched from \_\_mutex\_lock+0x64/0xd34
 \_\_mutex\_lock from mutex\_lock\_nested+0x1c/0x24
 mutex\_lock\_nested from lan966x\_stats\_get+0x5c/0x558
 lan966x\_stats\_get from dev\_get\_stats+0x40/0x43c
 dev\_get\_stats from dev\_seq\_printf\_stats+0x3c/0x184
 dev\_seq\_printf\_stats from dev\_seq\_show+0x10/0x30
 dev\_seq\_show from seq\_read\_iter+0x350/0x4ec
 seq\_read\_iter from seq\_read+0xfc/0x194
 seq\_read from proc\_reg\_read+0xac/0x100
 proc\_reg\_read from vfs\_read+0xb0/0x2b0
 vfs\_read from ksys\_read+0x6c/0xec
 ksys\_read from ret\_fast\_syscall+0x0/0x1c
Exception stack(0xf0b11fa8 to 0xf0b11ff0)
1fa0:                   00000001 00001000 00000008 be9048d8 00001000 00000001
1fc0: 00000001 00001000 00000008 00000003 be905920 0000001e 00000000 00000001
1fe0: 0005404c be9048c0 00018684 b6ec2cd8

It seems that we are using a mutex in a atomic context which is wrong.
Change the mutex with a spinlock.

## Affected and fixed versions

- Linux: \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 5a5d2f7727752b64d13263eacd9f8d08a322e662; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 3ac743c60ec502163c435712d527eeced8d83348; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 0216721ce71252f60d89af49c8dff613358058d3 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 0216721ce71252f60d89af49c8dff613358058d3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68320.md
Affected: Linux >= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, < cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d; >= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, < 5a5d2f7727752b64d13263eacd9f8d08a322e662; >= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, < c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d; >= 12c2d0a5b8e2a1afc8c7738…
Fixed in: Linux 5a5d2f7727752b64d13263eacd9f8d08a322e662, Linux 3ac743c60ec502163c435712d527eeced8d83348, Linux 0216721ce71252f60d89af49c8dff613358058d3

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-2025-68320 being exploited?

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

### How serious is CVE-2025-68320?

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

### Which versions are affected by CVE-2025-68320?

Linux \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 5a5d2f7727752b64d13263eacd9f8d08a322e662; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 3ac743c60ec502163c435712d527eeced8d83348; \>= 12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007, \< 0216721ce71252f60d89af49c8dff613358058d3; Linux 5.17.

### Is there a fix for CVE-2025-68320?

Yes. Fixed in Linux 5a5d2f7727752b64d13263eacd9f8d08a322e662, Linux 3ac743c60ec502163c435712d527eeced8d83348, Linux 0216721ce71252f60d89af49c8dff613358058d3. Upgrade Linux to 0216721ce71252f60d89af49c8dff613358058d3 or later.

### How do I check if I'm affected by CVE-2025-68320?

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

- other: <https://git.kernel.org/stable/c/cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d>
- other: <https://git.kernel.org/stable/c/5a5d2f7727752b64d13263eacd9f8d08a322e662>
- other: <https://git.kernel.org/stable/c/c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d>
- other: <https://git.kernel.org/stable/c/3ac743c60ec502163c435712d527eeced8d83348>
- other: <https://git.kernel.org/stable/c/0216721ce71252f60d89af49c8dff613358058d3>

## 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-2025-68320>

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