usb: typec: bus: verify partner exists in typec_altmode_attention
In the Linux kernel, the following vulnerability has been resolved: usb: typec: bus: verify partner exists in typec_altmode_attention Some usb hubs will negotiate DisplayPort Alt mode with the device but will then negotiate a data role swap after entering the alt mode. The data role swap causes the device to unregister all alt modes, however the usb hub will still send Attention messages even after failing to reregister the Alt Mode. type_altmode_attention currently does not verify whether or not a device's altmode partner exists, which results in a NULL pointer error when dereferencing the typec_altmode and typec_altmode_ops belonging to the altmode partner. Verify the presence of a device's altmode partner before sending the Attention message to the Alt Mode driver.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.195, 5.15.132, 5.4.257, 6.1.53, 6.4.16, 6.5.3
- CVEs
- CVE-2023-54299
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:34 UTC · Revision 1
Source evidence
usb: typec: bus: verify partner exists in typec_altmode_attention
core-osv · Original sourcePublished 30 Dec 2025, 12:23 UTC
In the Linux kernel, the following vulnerability has been resolved: usb: typec: bus: verify partner exists in typec_altmode_attention Some usb hubs will negotiate DisplayPort Alt mode with the device but will then negotiate a data role swap after entering the alt mode. The data role swap causes the device to unregister all alt modes, however the usb hub will still send Attention messages even after failing to reregister the Alt Mode. type_altmode_attention currently does not verify whether or not a device's altmode partner exists, which results in a NULL pointer error when dereferencing the typec_altmode and typec_altmode_ops belonging to the altmode partner. Verify the presence of a device's altmode partner before sending the Attention message to the Alt Mode driver.
osv:CVE-2023-54299
Kernel
Fixed versions: 5.4.257, 5.10.195, 5.15.132, 6.1.53, 6.4.16, 6.5.3
Complete source record
{
"id": "6516bba81a6762bc1586e67efa4359cd64091f0c62b54bcb7cad1e8463e9cf9e",
"url": "https://osv.dev/vulnerability/CVE-2023-54299",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "usb: typec: bus: verify partner exists in typec_altmode_attention",
"summary": "In the Linux kernel, the following vulnerability has been resolved: usb: typec: bus: verify partner exists in typec_altmode_attention Some usb hubs will negotiate DisplayPort Alt mode with the device but will then negotiate a data role swap after entering the alt mode. The data role swap causes the device to unregister all alt modes, however the usb hub will still send Attention messages even after failing to reregister the Alt Mode. type_altmode_attention currently does not verify whether or not a device's altmode partner exists, which results in a NULL pointer error when dereferencing the typec_altmode and typec_altmode_ops belonging to the altmode partner. Verify the presence of a device's altmode partner before sending the Attention message to the Alt Mode driver.",
"evidence": "osv:CVE-2023-54299",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.257",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.195",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.132",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.53",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-54299",
"aliases": [
"CVE-2023-54299"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "8a37d87d72f0c69f837229c04d2fcd7117ea57e7"
},
{
"fixed": "5f71716772b88cbe0e1788f6a38d7871aff2120b"
},
{
"fixed": "38e1f2ee82bacbbfded8f1c06794a443d038d054"
},
{
"fixed": "0ad6bad31da692f8d7acacab07eabe7586239ae0"
},
{
"fixed": "0d3b5fe47938e9c451466845304a2bd74e967a80"
},
{
"fixed": "d49547950bf7f3480d6ca05fe055978e5f0d9e5b"
},
{
"fixed": "1101867a1711c27d8bbe0e83136bec47f8c1ca2a"
},
{
"fixed": "f23643306430f86e2f413ee2b986e0773e79da31"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54299.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.19.0"
},
{
"fixed": "5.4.257"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.195"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.132"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.5.0"
},
{
"fixed": "6.5.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54299.json"
}
}
],
"modified": "2026-10-28T02:30:41.276666951Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0ad6bad31da692f8d7acacab07eabe7586239ae0",
"https://git.kernel.org/stable/c/0d3b5fe47938e9c451466845304a2bd74e967a80",
"https://git.kernel.org/stable/c/1101867a1711c27d8bbe0e83136bec47f8c1ca2a",
"https://git.kernel.org/stable/c/38e1f2ee82bacbbfded8f1c06794a443d038d054",
"https://git.kernel.org/stable/c/5f71716772b88cbe0e1788f6a38d7871aff2120b",
"https://git.kernel.org/stable/c/d49547950bf7f3480d6ca05fe055978e5f0d9e5b",
"https://git.kernel.org/stable/c/f23643306430f86e2f413ee2b986e0773e79da31",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54299.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54299",
"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/2023/54xxx/CVE-2023-54299.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54299",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 509136,
"published_at": "2025-12-30T12:23:35.146+00:00"
}