Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-49849

MEDIUM 5.5EPSS 13%

btrfs: fix match incorrectly in dev_args_match_device

Mitigation

  • Upgrade Linux to 5.15.79 or later.

Who should check

  • Anyone running Linux >= 5578b681fbf2b22d61189a2539efd3009518b328, < c9fe4719c662e0af17eea723cf345e37719fd3c9; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < bc6c127c377010f136360552ebf91c2723081c1b; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001; >= 5.15.54, < 5.15.79
  • Anyone running Linux 5.16

Vulnerability facts

Affected
Linux >= 5578b681fbf2b22d61189a2539efd3009518b328, < c9fe4719c662e0af17eea723cf345e37719fd3c9; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < bc6c127c377010f136360552ebf91c2723081c1b; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001; >= 5.15.54, < 5.15.79; Linux 5.16
Fixed in
Linux 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001, Linux 5.15.79
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix match incorrectly in dev_args_match_device syzkaller found a failed assertion: assertion failed: (args->devid != (u64)-1) || args->missing, in fs/btrfs/volumes.c:6921 This can be triggered when we set devid to (u64)-1 by ioctl. In this case, the match of devid will be skipped and the match of device may succeed incorrectly. Patch 562d7b1512f7 introduced this function which is used to match device. This function contains two matching scenarios, we can distinguish them by checking the value of args->missing rather than check whether args->devid and args->uuid is default value.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 5578b681fbf2b22d61189a2539efd3009518b328, < c9fe4719c662e0af17eea723cf345e37719fd3c9; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < bc6c127c377010f136360552ebf91c2723081c1b; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001; >= 5.15.54, < 5.15.79—cvelist
Linux5.16—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2022-49849.md
Affected: Linux >= 5578b681fbf2b22d61189a2539efd3009518b328, < c9fe4719c662e0af17eea723cf345e37719fd3c9; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < bc6c127c377010f136360552ebf91c2723081c1b; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001; >= 5.15.54, < 5.15.79; Lin…
Fixed in: Linux 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001, Linux 5.15.79

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.

References

FAQ

Is CVE-2022-49849 being exploited?

There is no confirmed exploitation: CVE-2022-49849 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-49849?

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

Which versions are affected by CVE-2022-49849?

Linux >= 5578b681fbf2b22d61189a2539efd3009518b328, < c9fe4719c662e0af17eea723cf345e37719fd3c9; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < bc6c127c377010f136360552ebf91c2723081c1b; >= 562d7b1512f7369a19bca2883e2e8672d78f0481, < 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001; >= 5.15.54, < 5.15.79; Linux 5.16.

Is there a fix for CVE-2022-49849?

Yes. Fixed in Linux 0fca385d6ebc3cabb20f67bcf8a71f1448bdc001, Linux 5.15.79. Upgrade Linux to 5.15.79 or later.

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

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.

Sponsors