CVE-2022-49033 json
btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
published 2024-10-21 2 y ago modified 2026-06-17 4 mo ago also EUVD-2022-53917
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
Syzkaller reported BUG as follows:
BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 Call Trace: <TASK> dump_stack_lvl+0xcd/0x134 __might_resched.cold+0x222/0x26b kmem_cache_alloc+0x2e7/0x3c0 update_qgroup_limit_item+0xe1/0x390 btrfs_qgroup_inherit+0x147b/0x1ee0 create_subvol+0x4eb/0x1710 btrfs_mksubvol+0xfe5/0x13f0 __btrfs_ioctl_snap_create+0x2b0/0x430 btrfs_ioctl_snap_create_v2+0x25a/0x520 btrfs_ioctl+0x2a1c/0x5ce0 __x64_sys_ioctl+0x193/0x200 do_syscall_64+0x35/0x80
Fix this by calling qgroup_dirty() on @dstqgroup, and update limit item in btrfs_run_qgroups() later outside of the spinlock context.
Patch / fix
- Linux Linux 4.9.335, 4.14.301, 4.19.268, 5.4.226, 5.10.158, 5.15.82, 6.0.12, 6.1
- linux Debian 14, Debian 13, Debian 12 6.0.12-1
debian advisories DEBIAN-CVE-2022-49033
- linux Ubuntu 18.04 LTS 4.15.0-206.217
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-67.74
- linux-aws Ubuntu 18.04 LTS 4.15.0-1151.164
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1031.35
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1030.37
ubuntu advisories UBUNTU-CVE-2022-49033
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLE High Performance Computing 15 SP5-ESPOS, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS 5.14.21-150500.55.91.1
- kernel-syms SLE High Performance Computing 15 SP5-ESPOS, SLES for SAP 15 SP5, SLES 15 SP5-LTSS +1 more 5.14.21-150500.55.91.1
- kernel-source SLE High Performance Computing 15 SP5-ESPOS, SLES for SAP 15 SP5, SLES 15 SP5-LTSS +1 more 5.14.21-150500.55.91.1
- kernel-default SLE Micro 5.5, SLE High Performance Computing 15 SP5-ESPOS, SLES for SAP 15 SP5 +3 more 5.14.21-150500.55.91.1
- kernel-obs-build SLE High Performance Computing 15 SP5-ESPOS, SLES for SAP 15 SP5, SLES 15 SP5-LTSS +1 more 5.14.21-150500.55.91.1
- kernel-default-base SLE Micro 5.5, SLE High Performance Computing 15 SP5-ESPOS, SLES for SAP 15 SP5 +2 more 5.14.21-150500.55.91.1.150500.6.41.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.82.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.82.1
suse advisories SUSE-SU-2025:0201-1SUSE-SU-2025:0201-2SUSE-SU-2025:0236-1SUSE-SU-2025:0229-1
- git.kernel.org/stable/c/89840b12c8fad7200eb6478525c13261512c01be commit
- git.kernel.org/stable/c/3c98e91be6aea4c7acf09da6eb0c107ea9186bb5 commit
- git.kernel.org/stable/c/f4b930a1602b05e77fee31f9616599b25e910a86 commit
- git.kernel.org/stable/c/8eb912af525042a7365295eb62f6d5270c2a6462 commit
- git.kernel.org/stable/c/01d7c41eac9129fba80d8aed0060caab4a7dbe09 commit
- git.kernel.org/stable/c/044da1a371a0da579e805e89c96865f62d8f6f69 commit
- git.kernel.org/stable/c/588ae4fdd8b11788a797776b10d6c44ae12bc133 commit
- git.kernel.org/stable/c/f7e942b5bb35d8e3af54053d19a6bf04143a3955 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49033 updated cvss 5.5
kernel: btrfs: qgroup: fix sleep from invalid context bug in btrfs_qgroup_inherit()
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/89840b12c8fad7200eb6478525c13261512c01be
patch
-
git.kernel.org
/stable/c/3c98e91be6aea4c7acf09da6eb0c107ea9186bb5
patch
-
git.kernel.org
/stable/c/f4b930a1602b05e77fee31f9616599b25e910a86
patch
-
git.kernel.org
/stable/c/8eb912af525042a7365295eb62f6d5270c2a6462
patch
-
git.kernel.org
/stable/c/01d7c41eac9129fba80d8aed0060caab4a7dbe09
patch
-
git.kernel.org
/stable/c/044da1a371a0da579e805e89c96865f62d8f6f69
patch
-
git.kernel.org
/stable/c/588ae4fdd8b11788a797776b10d6c44ae12bc133
patch
-
git.kernel.org
/stable/c/f7e942b5bb35d8e3af54053d19a6bf04143a3955
patch
Sources
- CVE List CVE-2022-49033
- NVD CVE-2022-49033
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.