CVE-2022-49849: btrfs: fix match incorrectly in dev_args_match_device

Published May 1, 2025
·
Updated

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

btrfs: fix match incorrectly in devargsmatchdevice

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 Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=5.15.54<5.15.79
Linux Linux kernel>=5.16<6.0.9
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4

Event History

May 1, 2025
CVE Published
via MITRE·02:10 PM
Data Sourced
via MITRE·02:10 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49849?

CVE-2022-49849 has a severity rating of medium, indicating a moderate risk to affected systems.

2

How do I fix CVE-2022-49849?

To fix CVE-2022-49849, update your Linux kernel to a patched version that addresses this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2022-49849?

CVE-2022-49849 affects Linux kernel versions between 5.15.54 and 5.15.79 as well as several 6.1 release candidates.

4

What impact does CVE-2022-49849 have on system security?

CVE-2022-49849 can potentially lead to system instability and could be exploited to cause a denial of service.

5

Is there a workaround for CVE-2022-49849?

Currently, there is no official workaround for CVE-2022-49849, so applying the patch is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203