# CVE-2022-49377: blk-mq: don't touch -\>tagset in blk\_mq\_get\_sq\_hctx

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T02:11:16.607Z
- **Modified:** 2026-08-05T08:54:57.701Z

## Who should check

- Anyone running Linux \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< b140bac470b4f707cda59c7266214246238661df; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 70fdd922c7bf8949f8df109cf2635dff64c90392; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 5d05426e2d5fd7df8afc866b78c36b37b00188b7
- Anyone running Linux 5.12

## Description

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

blk-mq: don't touch -\>tagset in blk\_mq\_get\_sq\_hctx

blk\_mq\_run\_hw\_queues() could be run when there isn't queued request and
after queue is cleaned up, at that time tagset is freed, because tagset
lifetime is covered by driver, and often freed after blk\_cleanup\_queue()
returns.

So don't touch -\>tagset for figuring out current default hctx by the mapping
built in request queue, so use-after-free on tagset can be avoided. Meantime
this way should be fast than retrieving mapping from tagset.

## Affected and fixed versions

- Linux: \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< b140bac470b4f707cda59c7266214246238661df; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 70fdd922c7bf8949f8df109cf2635dff64c90392; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 5d05426e2d5fd7df8afc866b78c36b37b00188b7 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49377.md
Affected: Linux >= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, < 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff; >= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, < b140bac470b4f707cda59c7266214246238661df; >= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, < 70fdd922c7bf8949f8df109cf2635dff64c90392; >= b6e68ee82585f2ee890b0a8…
Fixed in: Linux 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff, Linux 70fdd922c7bf8949f8df109cf2635dff64c90392, Linux 5d05426e2d5fd7df8afc866b78c36b37b00188b7

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< b140bac470b4f707cda59c7266214246238661df; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 70fdd922c7bf8949f8df109cf2635dff64c90392; \>= b6e68ee82585f2ee890b0a897a6aacbf49a467bb, \< 5d05426e2d5fd7df8afc866b78c36b37b00188b7; Linux 5.12.

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

Yes. Fixed in Linux 460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff, Linux 70fdd922c7bf8949f8df109cf2635dff64c90392, Linux 5d05426e2d5fd7df8afc866b78c36b37b00188b7. Upgrade Linux to 5d05426e2d5fd7df8afc866b78c36b37b00188b7 or later.

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

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/460aa288c5cd0544dcf933a2f0ad0e8c6d2d35ff>
- patch: <https://git.kernel.org/stable/c/b140bac470b4f707cda59c7266214246238661df>
- patch: <https://git.kernel.org/stable/c/70fdd922c7bf8949f8df109cf2635dff64c90392>
- patch: <https://git.kernel.org/stable/c/5d05426e2d5fd7df8afc866b78c36b37b00188b7>

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

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