CVE-2022-49831

Source
https://cve.org/CVERecord?id=CVE-2022-49831
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49831.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49831
Downstream
Published
2025-05-01T14:09:49.617Z
Modified
2026-03-11T07:45:05.654695Z
Summary
btrfs: zoned: initialize device's zone info for seeding
Details

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

btrfs: zoned: initialize device's zone info for seeding

When performing seeding on a zoned filesystem it is necessary to initialize each zoned device's btrfszoneddevice_info structure, otherwise mounting the filesystem will cause a NULL pointer dereference.

This was uncovered by fstests' testcase btrfs/163.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49831.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7365104236ade0bf22edd7724c8fd438b0342ee4
Fixed
91c38504e589dadbcde47b1cacdfc5b684154d44
Fixed
544f38a738343d7e75f104e5e9d1ade58d8b71bd
Fixed
a8d1b1647bf8244a5f270538e9e636e2657fffa3

Affected versions

v5.*
v5.11
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.33
v5.15.34
v5.15.35
v5.15.36
v5.15.37
v5.15.38
v5.15.39
v5.15.4
v5.15.40
v5.15.41
v5.15.42
v5.15.43
v5.15.44
v5.15.45
v5.15.46
v5.15.47
v5.15.48
v5.15.49
v5.15.5
v5.15.50
v5.15.51
v5.15.52
v5.15.53
v5.15.54
v5.15.55
v5.15.56
v5.15.57
v5.15.58
v5.15.59
v5.15.6
v5.15.60
v5.15.61
v5.15.62
v5.15.63
v5.15.64
v5.15.65
v5.15.66
v5.15.67
v5.15.68
v5.15.69
v5.15.7
v5.15.70
v5.15.71
v5.15.72
v5.15.73
v5.15.74
v5.15.75
v5.15.76
v5.15.77
v5.15.78
v5.15.8
v5.15.9
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v6.*
v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49831.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a8d1b1647bf8244a5f270538e9e636e2657fffa3",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "272338653973653548006298532489393570150",
                "236762403999657056557007919749511390601",
                "104772271963453629791680637039421190426",
                "150349796717107838422321815321874070021"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-0955a052",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c",
            "function": "btrfs_read_roots"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91c38504e589dadbcde47b1cacdfc5b684154d44",
        "deprecated": false,
        "digest": {
            "function_hash": "156880672906847243691684303751631229790",
            "length": 2405.0
        },
        "id": "CVE-2022-49831-13e1589c",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c",
            "function": "btrfs_read_roots"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@544f38a738343d7e75f104e5e9d1ade58d8b71bd",
        "deprecated": false,
        "digest": {
            "function_hash": "337031464229988643317779431692866032866",
            "length": 1497.0
        },
        "id": "CVE-2022-49831-195d7488",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c",
            "function": "btrfs_init_devices_late"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@544f38a738343d7e75f104e5e9d1ade58d8b71bd",
        "deprecated": false,
        "digest": {
            "function_hash": "15927039613551933912263169298294287644",
            "length": 444.0
        },
        "id": "CVE-2022-49831-2424528b",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91c38504e589dadbcde47b1cacdfc5b684154d44",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "229039495477405415647726347882625663702",
                "80793917906431943020615875242382995139",
                "42536245044291969041600295254239265602",
                "144435560549177614426445278068079369173",
                "177193648622512861409012858646193659991",
                "326849776247166386365437534192703795833",
                "169374316676295291514695043823976905607",
                "328369612016396365262433923109654898544",
                "98848371237317866003619366112415643897",
                "211450037035775563942717269657962199435",
                "127070804105501742615061195307916628534",
                "243000911059527764809430942994150314351",
                "320040152974371007015437753245362448125",
                "225779000878694532453255291865095228863",
                "297819434361371107392354253073201893560"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-2cd0dc99",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91c38504e589dadbcde47b1cacdfc5b684154d44",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "272338653973653548006298532489393570150",
                "70332448998133976612641037681369914039",
                "103926752459617487397680311322726336167",
                "242190064762146214533287388240787175214"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-3c3daf12",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.h"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@544f38a738343d7e75f104e5e9d1ade58d8b71bd",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "38729621315064631911033061733558569873",
                "16926282541859418793645573359489818471",
                "339172160920080752392693950817811901942",
                "203349336491966057102754817467398366732"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-5c63d40e",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c",
            "function": "btrfs_init_devices_late"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91c38504e589dadbcde47b1cacdfc5b684154d44",
        "deprecated": false,
        "digest": {
            "function_hash": "15927039613551933912263169298294287644",
            "length": 444.0
        },
        "id": "CVE-2022-49831-6b448b36",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c",
            "function": "btrfs_init_devices_late"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a8d1b1647bf8244a5f270538e9e636e2657fffa3",
        "deprecated": false,
        "digest": {
            "function_hash": "15927039613551933912263169298294287644",
            "length": 444.0
        },
        "id": "CVE-2022-49831-74c9154f",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@544f38a738343d7e75f104e5e9d1ade58d8b71bd",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "229039495477405415647726347882625663702",
                "80793917906431943020615875242382995139",
                "42536245044291969041600295254239265602",
                "144435560549177614426445278068079369173",
                "177193648622512861409012858646193659991",
                "326849776247166386365437534192703795833",
                "169374316676295291514695043823976905607",
                "328369612016396365262433923109654898544",
                "98848371237317866003619366112415643897",
                "211450037035775563942717269657962199435",
                "127070804105501742615061195307916628534",
                "243000911059527764809430942994150314351",
                "320040152974371007015437753245362448125",
                "225779000878694532453255291865095228863",
                "297819434361371107392354253073201893560"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-7ee22a7a",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a8d1b1647bf8244a5f270538e9e636e2657fffa3",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "229039495477405415647726347882625663702",
                "80793917906431943020615875242382995139",
                "42536245044291969041600295254239265602",
                "144435560549177614426445278068079369173",
                "177193648622512861409012858646193659991",
                "326849776247166386365437534192703795833",
                "169374316676295291514695043823976905607",
                "328369612016396365262433923109654898544",
                "98848371237317866003619366112415643897",
                "211450037035775563942717269657962199435",
                "127070804105501742615061195307916628534",
                "243000911059527764809430942994150314351",
                "320040152974371007015437753245362448125",
                "225779000878694532453255291865095228863",
                "297819434361371107392354253073201893560"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-88839c87",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c",
            "function": "btrfs_read_roots"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a8d1b1647bf8244a5f270538e9e636e2657fffa3",
        "deprecated": false,
        "digest": {
            "function_hash": "212107223698064892625785293228099744244",
            "length": 1841.0
        },
        "id": "CVE-2022-49831-b9f39861",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.h"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a8d1b1647bf8244a5f270538e9e636e2657fffa3",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "38729621315064631911033061733558569873",
                "16926282541859418793645573359489818471",
                "339172160920080752392693950817811901942",
                "203349336491966057102754817467398366732"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-c480e01c",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/volumes.h"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91c38504e589dadbcde47b1cacdfc5b684154d44",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "38729621315064631911033061733558569873",
                "16926282541859418793645573359489818471",
                "339172160920080752392693950817811901942",
                "203349336491966057102754817467398366732"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-e3277fc4",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/disk-io.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@544f38a738343d7e75f104e5e9d1ade58d8b71bd",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "272338653973653548006298532489393570150",
                "236762403999657056557007919749511390601",
                "104772271963453629791680637039421190426",
                "150349796717107838422321815321874070021"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49831-e5dbb080",
        "signature_type": "Line"
    }
]