drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
In the Linux kernel, the following vulnerability has been resolved: drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() If the allocation in msm_disp_state_dump_regs() failed then `block->state` can be NULL. The msm_disp_state_print_regs() function _does_ have code to try to handle it with: if (*reg) dump_addr = *reg; ...but since "dump_addr" is initialized to NULL the above is actually a noop. The code then goes on to dereference `dump_addr`. Make the function print "Registers not stored" when it sees a NULL to solve this. Since we're touching the code, fix msm_disp_state_print_regs() not to pointlessly take a double-pointer and properly mark the pointer as `const`. Patchwork: https://patchwork.freedesktop.org/patch/619657/
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.170, 6.1.115, 6.11.6, 6.6.59
- CVEs
- CVE-2024-50156
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 01:01 UTC · Revision 1
Source evidence
drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
core-osv · Original sourcePublished 7 Nov 2024, 09:31 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() If the allocation in msm_disp_state_dump_regs() failed then `block->state` can be NULL. The msm_disp_state_print_regs() function _does_ have code to try to handle it with: if (*reg) dump_addr = *reg; ...but since "dump_addr" is initialized to NULL the above is actually a noop. The code then goes on to dereference `dump_addr`. Make the function print "Registers not stored" when it sees a NULL to solve this. Since we're touching the code, fix msm_disp_state_print_regs() not to pointlessly take a double-pointer and properly mark the pointer as `const`. Patchwork: https://patchwork.freedesktop.org/patch/619657/
osv:CVE-2024-50156
Kernel
Fixed versions: 5.15.170, 6.1.115, 6.6.59, 6.11.6
Complete source record
{
"id": "f9e39d28c7e51328c64eedb1bf961c6b1dd814e7f11168b9e23bd7b8ddb8db46",
"url": "https://osv.dev/vulnerability/CVE-2024-50156",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/msm: Avoid NULL dereference in msm_disp_state_print_regs() If the allocation in msm_disp_state_dump_regs() failed then `block->state` can be NULL. The msm_disp_state_print_regs() function _does_ have code to try to handle it with: if (*reg) dump_addr = *reg; ...but since \"dump_addr\" is initialized to NULL the above is actually a noop. The code then goes on to dereference `dump_addr`. Make the function print \"Registers not stored\" when it sees a NULL to solve this. Since we're touching the code, fix msm_disp_state_print_regs() not to pointlessly take a double-pointer and properly mark the pointer as `const`. Patchwork: https://patchwork.freedesktop.org/patch/619657/",
"evidence": "osv:CVE-2024-50156",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.170",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.115",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.59",
"evidence": "/affected/1/ranges"
},
{
"value": "6.11.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-50156",
"aliases": [
"CVE-2024-50156"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "98659487b845c05b6bed85d881713545db674c7c"
},
{
"fixed": "42cf045086feae77b212f0f66e742b91a5b566b7"
},
{
"fixed": "e8e9f2a12a6214080c8ea83220a596f6e1dedc6c"
},
{
"fixed": "f7ad916273483748582d97cfa31054ccb19224f3"
},
{
"fixed": "563aa81fd66a4e7e6e551a0e02bcc23957cafe2f"
},
{
"fixed": "293f53263266bc4340d777268ab4328a97f041fa"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50156.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.14.0"
},
{
"fixed": "5.15.170"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.115"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.59"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50156.json"
}
}
],
"modified": "2026-10-28T02:30:48.850161606Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/293f53263266bc4340d777268ab4328a97f041fa",
"https://git.kernel.org/stable/c/42cf045086feae77b212f0f66e742b91a5b566b7",
"https://git.kernel.org/stable/c/563aa81fd66a4e7e6e551a0e02bcc23957cafe2f",
"https://git.kernel.org/stable/c/e8e9f2a12a6214080c8ea83220a596f6e1dedc6c",
"https://git.kernel.org/stable/c/f7ad916273483748582d97cfa31054ccb19224f3",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50156.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-50156",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50156.json"
}
},
"related_cves": [
{
"value": "CVE-2024-50156",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516819,
"published_at": "2024-11-07T09:31:33.018+00:00"
}