{"id":"CVE-2022-49831","state":"PUBLISHED","title":"btrfs: zoned: initialize device's zone info for seeding","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: initialize device's zone info for seeding\n\nWhen performing seeding on a zoned filesystem it is necessary to\ninitialize each zoned device's btrfs_zoned_device_info structure,\notherwise mounting the filesystem will cause a NULL pointer dereference.\n\nThis was uncovered by fstests' testcase btrfs/163.","publishedAt":"2025-05-01T14:09:49.617Z","updatedAt":"2026-05-11T19:07:36.969Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"91c38504e589dadbcde47b1cacdfc5b684154d44","versionType":"git"},{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"544f38a738343d7e75f104e5e9d1ade58d8b71bd","versionType":"git"},{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"a8d1b1647bf8244a5f270538e9e636e2657fffa3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/disk-io.c","fs/btrfs/volumes.c","fs/btrfs/volumes.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.79","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.9","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/disk-io.c","fs/btrfs/volumes.c","fs/btrfs/volumes.h"]}],"references":["https://git.kernel.org/stable/c/91c38504e589dadbcde47b1cacdfc5b684154d44","https://git.kernel.org/stable/c/544f38a738343d7e75f104e5e9d1ade58d8b71bd","https://git.kernel.org/stable/c/a8d1b1647bf8244a5f270538e9e636e2657fffa3"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49831.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49831","state":"PUBLISHED","datePublished":"2025-05-01T14:09:49.617Z","dateUpdated":"2026-05-11T19:07:36.969Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-05-01T14:05:17.228Z"},"containers":{"cna":{"title":"btrfs: zoned: initialize device's zone info for seeding","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: initialize device's zone info for seeding\n\nWhen performing seeding on a zoned filesystem it is necessary to\ninitialize each zoned device's btrfs_zoned_device_info structure,\notherwise mounting the filesystem will cause a NULL pointer dereference.\n\nThis was uncovered by fstests' testcase btrfs/163."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"91c38504e589dadbcde47b1cacdfc5b684154d44","versionType":"git"},{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"544f38a738343d7e75f104e5e9d1ade58d8b71bd","versionType":"git"},{"version":"7365104236ade0bf22edd7724c8fd438b0342ee4","status":"affected","lessThan":"a8d1b1647bf8244a5f270538e9e636e2657fffa3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/disk-io.c","fs/btrfs/volumes.c","fs/btrfs/volumes.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.79","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.9","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/disk-io.c","fs/btrfs/volumes.c","fs/btrfs/volumes.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/91c38504e589dadbcde47b1cacdfc5b684154d44"},{"url":"https://git.kernel.org/stable/c/544f38a738343d7e75f104e5e9d1ade58d8b71bd"},{"url":"https://git.kernel.org/stable/c/a8d1b1647bf8244a5f270538e9e636e2657fffa3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:07:36.969Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.15.79"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.0.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}