drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req()
In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req() While receiving an MST up request message from one thread in drm_dp_mst_handle_up_req(), the MST topology could be removed from another thread via drm_dp_mst_topology_mgr_set_mst(false), freeing mst_primary and setting drm_dp_mst_topology_mgr::mst_primary to NULL. This could lead to a NULL deref/use-after-free of mst_primary in drm_dp_mst_handle_up_req(). Avoid the above by holding a reference for mst_primary in drm_dp_mst_handle_up_req() while it's used. v2: Fix kfreeing the request if getting an mst_primary reference fails.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.123, 6.12.8, 6.6.69
- CVEs
- CVE-2024-57798
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 00:35 UTC · Revision 1
Source evidence
drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req()
core-osv · Original sourcePublished 11 Jan 2025, 12:39 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req() While receiving an MST up request message from one thread in drm_dp_mst_handle_up_req(), the MST topology could be removed from another thread via drm_dp_mst_topology_mgr_set_mst(false), freeing mst_primary and setting drm_dp_mst_topology_mgr::mst_primary to NULL. This could lead to a NULL deref/use-after-free of mst_primary in drm_dp_mst_handle_up_req(). Avoid the above by holding a reference for mst_primary in drm_dp_mst_handle_up_req() while it's used. v2: Fix kfreeing the request if getting an mst_primary reference fails.
osv:CVE-2024-57798
Kernel
Fixed versions: 6.1.123, 6.6.69, 6.12.8
Complete source record
{
"id": "17e46fdcb5e1b8c47ff53b1558c0b01a6504cf53c36758bcafc514d0cf5cfbb0",
"url": "https://osv.dev/vulnerability/CVE-2024-57798",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/dp_mst: Ensure mst_primary pointer is valid in drm_dp_mst_handle_up_req() While receiving an MST up request message from one thread in drm_dp_mst_handle_up_req(), the MST topology could be removed from another thread via drm_dp_mst_topology_mgr_set_mst(false), freeing mst_primary and setting drm_dp_mst_topology_mgr::mst_primary to NULL. This could lead to a NULL deref/use-after-free of mst_primary in drm_dp_mst_handle_up_req(). Avoid the above by holding a reference for mst_primary in drm_dp_mst_handle_up_req() while it's used. v2: Fix kfreeing the request if getting an mst_primary reference fails.",
"evidence": "osv:CVE-2024-57798",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.123",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.69",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-57798",
"aliases": [
"CVE-2024-57798"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9408cc94eb041d0c2f9f00189a613b94c0449450"
},
{
"fixed": "f61b2e5e7821f868d6afc22382a66a30ee780ba0"
},
{
"fixed": "9735d40f5fde9970aa46e828ecc85c32571d58a2"
},
{
"fixed": "ce55818b2d3a999f886af91679589e4644ff1dc8"
},
{
"fixed": "e54b00086f7473dbda1a7d6fc47720ced157c6a8"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57798.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "6.1.123"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.69"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57798.json"
}
}
],
"modified": "2026-10-28T02:30:45.821317814Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/9735d40f5fde9970aa46e828ecc85c32571d58a2",
"https://git.kernel.org/stable/c/ce55818b2d3a999f886af91679589e4644ff1dc8",
"https://git.kernel.org/stable/c/e54b00086f7473dbda1a7d6fc47720ced157c6a8",
"https://git.kernel.org/stable/c/f61b2e5e7821f868d6afc22382a66a30ee780ba0",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57798.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-57798",
"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/57xxx/CVE-2024-57798.json"
}
},
"related_cves": [
{
"value": "CVE-2024-57798",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 513535,
"published_at": "2025-01-11T12:39:48.212+00:00"
}