CVE-2022-48849

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48849
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48849.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48849
Downstream
Related
Published
2024-07-16T12:25:17Z
Modified
2025-10-21T07:48:20.024062Z
Summary
drm/amdgpu: bypass tiling flag check in virtual display case (v2)
Details

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

drm/amdgpu: bypass tiling flag check in virtual display case (v2)

vkms leverages common amdgpu framebuffer creation, and also as it does not support FB modifier, there is no need to check tiling flags when initing framebuffer when virtual display is enabled.

This can fix below calltrace:

amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpudisplay.c:1150 amdgpudisplayframebufferinit+0x8e7/0xb40 [amdgpu]

v2: check adev->enablevirtualdisplay instead as vkms can be enabled in bare metal as well.

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
2f350ddadca3b96c72ed1481875f0b8fc1a01612
Fixed
cb29021be49858059138f75d6311a7c35a9379b2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2f350ddadca3b96c72ed1481875f0b8fc1a01612
Fixed
e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7

Affected versions

v5.*

v5.15
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
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.16.1
v5.16.10
v5.16.11
v5.16.12
v5.16.13
v5.16.14
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5

Database specific

vanir_signatures

[
    {
        "id": "CVE-2022-48849-19d57848",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb29021be49858059138f75d6311a7c35a9379b2",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_display.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "193418978046749674855924214322417472712",
                "201684815284271098072877424952143529991",
                "74352875957909836203432724855974334931",
                "82840928017604214157226001458187772204"
            ]
        },
        "signature_type": "Line"
    },
    {
        "id": "CVE-2022-48849-5aee593c",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_display.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "193418978046749674855924214322417472712",
                "201684815284271098072877424952143529991",
                "74352875957909836203432724855974334931",
                "82840928017604214157226001458187772204"
            ]
        },
        "signature_type": "Line"
    },
    {
        "id": "CVE-2022-48849-63c3f389",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "amdgpu_display_framebuffer_init",
            "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_display.c"
        },
        "digest": {
            "length": 1264.0,
            "function_hash": "226371838968216317876467205560961494135"
        },
        "signature_type": "Function"
    },
    {
        "id": "CVE-2022-48849-ac05a172",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb29021be49858059138f75d6311a7c35a9379b2",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "amdgpu_display_framebuffer_init",
            "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_display.c"
        },
        "digest": {
            "length": 1264.0,
            "function_hash": "226371838968216317876467205560961494135"
        },
        "signature_type": "Function"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.15