{"id":"CVE-2022-49849","aliases":["CVE-2022-49849"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix match incorrectly in dev_args_match_device","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix match incorrectly in dev_args_match_device\n\nsyzkaller found a failed assertion:\n\n  assertion failed: (args->devid != (u64)-1) || args->missing, in fs/btrfs/volumes.c:6921\n\nThis can be triggered when we set devid to (u64)-1 by ioctl. In this\ncase, the match of devid will be skipped and the match of device may\nsucceed incorrectly.\n\nPatch 562d7b1512f7 introduced this function which is used to match device.\nThis function contains two matching scenarios, we can distinguish them by\nchecking the value of args->missing rather than check whether args->devid\nand args->uuid is default value.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix match incorrectly in dev_args_match_device\n\nsyzkaller found a failed assertion:\n\n  assertion failed: (args->devid != (u64)-1) || args->missing, in fs/btrfs/volumes.c:6921\n\nThis can be triggered when we set devid to (u64)-1 by ioctl. In this\ncase, the match of devid will be skipped and the match of device may\nsucceed incorrectly.\n\nPatch 562d7b1512f7 introduced this function which is used to match device.\nThis function contains two matching scenarios, we can distinguish them by\nchecking the value of args->missing rather than check whether args->devid\nand args->uuid is default value.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: corrección de coincidencia incorrecta en dev_args_match_device syzkaller encontró una aserción fallida: assertion failed: (args-&gt;devid != (u64)-1) || args-&gt;missing, en fs/btrfs/volumes.c:6921 Esto puede activarse cuando configuramos devid en (u64)-1 mediante ioctl. En este caso, se omitirá la coincidencia de devid y la coincidencia de dispositivo puede tener éxito incorrectamente. El parche 562d7b1512f7 introdujo esta función que se utiliza para hacer coincidir dispositivos. Esta función contiene dos escenarios de coincidencia; podemos distinguirlos comprobando el valor de args-&gt;missing en lugar de comprobar si args-&gt;devid y args-&gt;uuid son los valores predeterminados.","source":"nvd"}],"published":"2025-05-01T14:10:04.480Z","modified":"2026-06-17T05:19:18.053Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5578b681fbf2b22d61189a2539efd3009518b328","fixed":"c9fe4719c662e0af17eea723cf345e37719fd3c9","status":"affected"},{"type":"git","introduced":"562d7b1512f7369a19bca2883e2e8672d78f0481","fixed":"bc6c127c377010f136360552ebf91c2723081c1b","status":"affected"},{"type":"git","introduced":"562d7b1512f7369a19bca2883e2e8672d78f0481","fixed":"0fca385d6ebc3cabb20f67bcf8a71f1448bdc001","status":"affected"},{"type":"semver","introduced":"5.15.54","fixed":"5.15.79","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"5.15.79","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.9","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.54","fixed":"5.15.79"},{"status":"affected","introduced":"5.16","fixed":"6.0.9"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c9fe4719c662e0af17eea723cf345e37719fd3c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc6c127c377010f136360552ebf91c2723081c1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0fca385d6ebc3cabb20f67bcf8a71f1448bdc001","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49849","url":"https://www.cve.org/CVERecord?id=CVE-2022-49849","licence":"CVE Terms of Use","modified":"2026-05-23T15:22:58.301Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49849","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49849","licence":"Public domain","modified":"2026-06-17T05:19:18.053Z"}],"updatedAt":"2026-11-25T22:58:20.899Z","epss":{"score":0.00207,"percentile":0.11461,"date":"2026-12-01T12:00:22.000Z"}}