# CVE-2022-49936: USB: core: Prevent nested device-reset calls

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T10:54:37.889Z
- **Modified:** 2026-06-17T05:19:34.453Z

## Who should check

- Anyone running Linux \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d90419b8b8322b6924f6da9da952647f2dadc21b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 1b29498669914c7f9afb619722421418a753d372; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< cc9a12e12808af178c600cc485338bac2e37d2a8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< df1875084898b15cbc42f712e93d7f113ae6271b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< abe3cfb7a7c8e907b312c7dbd7bf4d142b745aa8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< c548b99e1c37db6f7df86ecfe9a1f895d6c5966e; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d5eb850b3e8836197a38475840725260b9783e94; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 9c6d778800b921bde3bff3cff5003d1650f942d1
- Anyone running Linux 2.6.27

## Description

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

USB: core: Prevent nested device-reset calls

Automatic kernel fuzzing revealed a recursive locking violation in
usb-storage:

============================================
WARNING: possible recursive locking detected
5.18.0 \#3 Not tainted
--------------------------------------------
kworker/1:3/1205 is trying to acquire lock:
ffff888018638db8 (&us\_interface\_key\[i\]){+.+.}-{3:3}, at:
usb\_stor\_pre\_reset+0x35/0x40 drivers/usb/storage/usb.c:230

but task is already holding lock:
ffff888018638db8 (&us\_interface\_key\[i\]){+.+.}-{3:3}, at:
usb\_stor\_pre\_reset+0x35/0x40 drivers/usb/storage/usb.c:230

...

stack backtrace:
CPU: 1 PID: 1205 Comm: kworker/1:3 Not tainted 5.18.0 \#3
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
Workqueue: usb\_hub\_wq hub\_event
Call Trace:
\<TASK\>
\_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
print\_deadlock\_bug kernel/locking/lockdep.c:2988 \[inline\]
check\_deadlock kernel/locking/lockdep.c:3031 \[inline\]
validate\_chain kernel/locking/lockdep.c:3816 \[inline\]
\_\_lock\_acquire.cold+0x152/0x3ca kernel/locking/lockdep.c:5053
lock\_acquire kernel/locking/lockdep.c:5665 \[inline\]
lock\_acquire+0x1ab/0x520 kernel/locking/lockdep.c:5630
\_\_mutex\_lock\_common kernel/locking/mutex.c:603 \[inline\]
\_\_mutex\_lock+0x14f/0x1610 kernel/locking/mutex.c:747
usb\_stor\_pre\_reset+0x35/0x40 drivers/usb/storage/usb.c:230
usb\_reset\_device+0x37d/0x9a0 drivers/usb/core/hub.c:6109
r871xu\_dev\_remove+0x21a/0x270 drivers/staging/rtl8712/usb\_intf.c:622
usb\_unbind\_interface+0x1bd/0x890 drivers/usb/core/driver.c:458
device\_remove drivers/base/dd.c:545 \[inline\]
device\_remove+0x11f/0x170 drivers/base/dd.c:537
\_\_device\_release\_driver drivers/base/dd.c:1222 \[inline\]
device\_release\_driver\_internal+0x1a7/0x2f0 drivers/base/dd.c:1248
usb\_driver\_release\_interface+0x102/0x180 drivers/usb/core/driver.c:627
usb\_forced\_unbind\_intf+0x4d/0xa0 drivers/usb/core/driver.c:1118
usb\_reset\_device+0x39b/0x9a0 drivers/usb/core/hub.c:6114

This turned out not to be an error in usb-storage but rather a nested
device reset attempt.  That is, as the rtl8712 driver was being
unbound from a composite device in preparation for an unrelated USB
reset (that driver does not have pre\_reset or post\_reset callbacks),
its -\>remove routine called usb\_reset\_device() -- thus nesting one
reset call within another.

Performing a reset as part of disconnect processing is a questionable
practice at best.  However, the bug report points out that the USB
core does not have any protection against nested resets.  Adding a
reset\_in\_progress flag and testing it will prevent such errors in the
future.

## Affected and fixed versions

- Linux: \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d90419b8b8322b6924f6da9da952647f2dadc21b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 1b29498669914c7f9afb619722421418a753d372; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< cc9a12e12808af178c600cc485338bac2e37d2a8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< df1875084898b15cbc42f712e93d7f113ae6271b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< abe3cfb7a7c8e907b312c7dbd7bf4d142b745aa8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< c548b99e1c37db6f7df86ecfe9a1f895d6c5966e; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d5eb850b3e8836197a38475840725260b9783e94; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 9c6d778800b921bde3bff3cff5003d1650f942d1 (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 9c6d778800b921bde3bff3cff5003d1650f942d1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49936.md
Affected: Linux >= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, < d90419b8b8322b6924f6da9da952647f2dadc21b; >= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, < 1b29498669914c7f9afb619722421418a753d372; >= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, < cc9a12e12808af178c600cc485338bac2e37d2a8; >= 78d9a487ee961c356e1a934…
Fixed in: Linux 1b29498669914c7f9afb619722421418a753d372, Linux 9c6d778800b921bde3bff3cff5003d1650f942d1

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-2022-49936 being exploited?

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

### How serious is CVE-2022-49936?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49936?

Linux \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d90419b8b8322b6924f6da9da952647f2dadc21b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 1b29498669914c7f9afb619722421418a753d372; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< cc9a12e12808af178c600cc485338bac2e37d2a8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< df1875084898b15cbc42f712e93d7f113ae6271b; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< abe3cfb7a7c8e907b312c7dbd7bf4d142b745aa8; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< c548b99e1c37db6f7df86ecfe9a1f895d6c5966e; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< d5eb850b3e8836197a38475840725260b9783e94; \>= 78d9a487ee961c356e1a934d9a92eca38ffb3a70, \< 9c6d778800b921bde3bff3cff5003d1650f942d1; Linux 2.6.27.

### Is there a fix for CVE-2022-49936?

Yes. Fixed in Linux 1b29498669914c7f9afb619722421418a753d372, Linux 9c6d778800b921bde3bff3cff5003d1650f942d1. Upgrade Linux to 9c6d778800b921bde3bff3cff5003d1650f942d1 or later.

### How do I check if I'm affected by CVE-2022-49936?

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/d90419b8b8322b6924f6da9da952647f2dadc21b>
- patch: <https://git.kernel.org/stable/c/1b29498669914c7f9afb619722421418a753d372>
- patch: <https://git.kernel.org/stable/c/cc9a12e12808af178c600cc485338bac2e37d2a8>
- patch: <https://git.kernel.org/stable/c/df1875084898b15cbc42f712e93d7f113ae6271b>
- patch: <https://git.kernel.org/stable/c/abe3cfb7a7c8e907b312c7dbd7bf4d142b745aa8>
- patch: <https://git.kernel.org/stable/c/c548b99e1c37db6f7df86ecfe9a1f895d6c5966e>
- patch: <https://git.kernel.org/stable/c/d5eb850b3e8836197a38475840725260b9783e94>
- patch: <https://git.kernel.org/stable/c/9c6d778800b921bde3bff3cff5003d1650f942d1>

## 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-2022-49936>

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