CVE-2022-50130

Source
https://cve.org/CVERecord?id=CVE-2022-50130
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50130.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50130
Downstream
Published
2025-06-18T11:02:56.209Z
Modified
2026-03-11T09:34:58.062225Z
Summary
staging: fbtft: core: set smem_len before fb_deferred_io_init call
Details

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

staging: fbtft: core: set smemlen before fbdeferredioinit call

The fbtftframebufferalloc() calls fbdeferredioinit() before initializing info->fix.smemlen. It is set to zero by the framebufferalloc() function. It will trigger a WARNON() at the start of fbdeferredio_init() and the function will not do anything.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50130.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
e79b2b2aadeffe1db54a6b569b9b621575c3eb07
Fixed
4178bfa3fc9de556dfe248a6eabe29280f0ffda5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6a9ae2fe887042f76fd3d334349e64e8ab3c55a2
Fixed
5185c319e8ea67657e0d3edd520a7276516c506a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
856082f021a28221db2c32bd0531614a8382be67
Fixed
6ae6abe240306f878557d6eadd950a2e2561f59f
Fixed
81e878887ff82a7dd42f22951391069a5d520627

Affected versions

v5.*
v5.17
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.18.10
v5.18.11
v5.18.12
v5.18.13
v5.18.14
v5.18.15
v5.18.16
v5.18.17
v5.18.3
v5.18.4
v5.18.5
v5.18.6
v5.18.7
v5.18.8
v5.18.9
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
v5.19.1

Database specific

vanir_signatures
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "43184642192304194876106773948248668814",
                "187583204775927671950112213251588813576",
                "149009778782362019809355321576930780579",
                "329570873184081682426065931185811325090",
                "257577036132881491677705497409946488089",
                "18067141787664719392620449418038989509",
                "277978564285381088759673091383868633128",
                "206229333118795311696444606602094282065"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-50130-794d58eb",
        "target": {
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae6abe240306f878557d6eadd950a2e2561f59f"
    },
    {
        "digest": {
            "length": 5209.0,
            "function_hash": "133112953886595217509887674675756604418"
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-50130-96474f4d",
        "target": {
            "function": "fbtft_framebuffer_alloc",
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5185c319e8ea67657e0d3edd520a7276516c506a"
    },
    {
        "digest": {
            "length": 5212.0,
            "function_hash": "121236384945998118580281016172253475209"
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-50130-a805125e",
        "target": {
            "function": "fbtft_framebuffer_alloc",
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4178bfa3fc9de556dfe248a6eabe29280f0ffda5"
    },
    {
        "digest": {
            "length": 5251.0,
            "function_hash": "15954884245034627004040773350187295156"
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-50130-dc352a86",
        "target": {
            "function": "fbtft_framebuffer_alloc",
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae6abe240306f878557d6eadd950a2e2561f59f"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "43184642192304194876106773948248668814",
                "187583204775927671950112213251588813576",
                "149009778782362019809355321576930780579",
                "329570873184081682426065931185811325090",
                "257577036132881491677705497409946488089",
                "18067141787664719392620449418038989509",
                "277978564285381088759673091383868633128",
                "206229333118795311696444606602094282065"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-50130-dda59cb8",
        "target": {
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4178bfa3fc9de556dfe248a6eabe29280f0ffda5"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "65261511569413992980189142838676611072",
                "106949404633036864278227433973633001859",
                "149009778782362019809355321576930780579",
                "329570873184081682426065931185811325090",
                "257577036132881491677705497409946488089",
                "18067141787664719392620449418038989509",
                "277978564285381088759673091383868633128",
                "206229333118795311696444606602094282065"
            ]
        },
        "signature_version": "v1",
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-50130-fef401cd",
        "target": {
            "file": "drivers/staging/fbtft/fbtft-core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5185c319e8ea67657e0d3edd520a7276516c506a"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50130.json"