# CVE-2022-49259: block: don't delete queue kobject before its children

> 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-02-26T01:56:12.046Z
- **Modified:** 2026-06-17T05:17:31.957Z

## Who should check

- Anyone running Linux \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< b2001eb10f59363da930cdd6e086a2861986fa18; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 84fe3ca6e7910beb47ec13509d484f84fa2a41ad; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0b5924a14d64487ebd51127b0358d06066ef5384; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< efaa0e969261e97c1fdd8e0338e5dd3ba5b9219c; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< cf0cb8686e55d9c022944bc6ba9e19e832889e83; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 3d7e32c8da45957326f56937e0471c686d1a7711; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0f69288253e9fc7c495047720e523b9f1aba5712
- Anyone running Linux 4.16

## Description

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

block: don't delete queue kobject before its children

kobjects aren't supposed to be deleted before their child kobjects are
deleted.  Apparently this is usually benign; however, a WARN will be
triggered if one of the child kobjects has a named attribute group:

    sysfs group 'modes' not found for kobject 'crypto'
    WARNING: CPU: 0 PID: 1 at fs/sysfs/group.c:278 sysfs\_remove\_group+0x72/0x80
    ...
    Call Trace:
      sysfs\_remove\_groups+0x29/0x40 fs/sysfs/group.c:312
      \_\_kobject\_del+0x20/0x80 lib/kobject.c:611
      kobject\_cleanup+0xa4/0x140 lib/kobject.c:696
      kobject\_release lib/kobject.c:736 \[inline\]
      kref\_put include/linux/kref.h:65 \[inline\]
      kobject\_put+0x53/0x70 lib/kobject.c:753
      blk\_crypto\_sysfs\_unregister+0x10/0x20 block/blk-crypto-sysfs.c:159
      blk\_unregister\_queue+0xb0/0x110 block/blk-sysfs.c:962
      del\_gendisk+0x117/0x250 block/genhd.c:610

Fix this by moving the kobject\_del() and the corresponding
kobject\_uevent() to the correct place.

## Affected and fixed versions

- Linux: \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< b2001eb10f59363da930cdd6e086a2861986fa18; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 84fe3ca6e7910beb47ec13509d484f84fa2a41ad; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0b5924a14d64487ebd51127b0358d06066ef5384; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< efaa0e969261e97c1fdd8e0338e5dd3ba5b9219c; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< cf0cb8686e55d9c022944bc6ba9e19e832889e83; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 3d7e32c8da45957326f56937e0471c686d1a7711; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0f69288253e9fc7c495047720e523b9f1aba5712 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49259.md
Affected: Linux >= 2c2086afc2b8b974fac32cb028e73dc27bfae442, < b2001eb10f59363da930cdd6e086a2861986fa18; >= 2c2086afc2b8b974fac32cb028e73dc27bfae442, < 84fe3ca6e7910beb47ec13509d484f84fa2a41ad; >= 2c2086afc2b8b974fac32cb028e73dc27bfae442, < 0b5924a14d64487ebd51127b0358d06066ef5384; >= 2c2086afc2b8b974fac32cb…
Fixed in: Linux 84fe3ca6e7910beb47ec13509d484f84fa2a41ad, Linux 0b5924a14d64487ebd51127b0358d06066ef5384, Linux 3d7e32c8da45957326f56937e0471c686d1a7711, Linux 0f69288253e9fc7c495047720e523b9f1aba5712

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

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

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

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

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

Linux \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< b2001eb10f59363da930cdd6e086a2861986fa18; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 84fe3ca6e7910beb47ec13509d484f84fa2a41ad; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0b5924a14d64487ebd51127b0358d06066ef5384; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< efaa0e969261e97c1fdd8e0338e5dd3ba5b9219c; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< cf0cb8686e55d9c022944bc6ba9e19e832889e83; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 3d7e32c8da45957326f56937e0471c686d1a7711; \>= 2c2086afc2b8b974fac32cb028e73dc27bfae442, \< 0f69288253e9fc7c495047720e523b9f1aba5712; Linux 4.16.

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

Yes. Fixed in Linux 84fe3ca6e7910beb47ec13509d484f84fa2a41ad, Linux 0b5924a14d64487ebd51127b0358d06066ef5384, Linux 3d7e32c8da45957326f56937e0471c686d1a7711, Linux 0f69288253e9fc7c495047720e523b9f1aba5712. Upgrade Linux to 0f69288253e9fc7c495047720e523b9f1aba5712 or later.

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

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/b2001eb10f59363da930cdd6e086a2861986fa18>
- patch: <https://git.kernel.org/stable/c/84fe3ca6e7910beb47ec13509d484f84fa2a41ad>
- patch: <https://git.kernel.org/stable/c/0b5924a14d64487ebd51127b0358d06066ef5384>
- patch: <https://git.kernel.org/stable/c/efaa0e969261e97c1fdd8e0338e5dd3ba5b9219c>
- patch: <https://git.kernel.org/stable/c/cf0cb8686e55d9c022944bc6ba9e19e832889e83>
- patch: <https://git.kernel.org/stable/c/3d7e32c8da45957326f56937e0471c686d1a7711>
- patch: <https://git.kernel.org/stable/c/0f69288253e9fc7c495047720e523b9f1aba5712>

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

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