usb: early: xhci-dbc: Fix a potential out-of-bound memory access
In the Linux kernel, the following vulnerability has been resolved: usb: early: xhci-dbc: Fix a potential out-of-bound memory access If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called. Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.99, 6.1.16, 6.2.3
- CVEs
- CVE-2023-53840
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 18:12 UTC · Revision 1
Source evidence
usb: early: xhci-dbc: Fix a potential out-of-bound memory access
core-osv · Original sourcePublished 9 Dec 2025, 01:29 UTC
In the Linux kernel, the following vulnerability has been resolved: usb: early: xhci-dbc: Fix a potential out-of-bound memory access If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called. Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen.
osv:CVE-2023-53840
Kernel
Fixed versions: 5.15.99, 6.1.16, 6.2.3
Complete source record
{
"id": "6caf771af7c09019535385e0c603ffc55b186b6e9fd6631dae13ed72d28dbcf8",
"url": "https://osv.dev/vulnerability/CVE-2023-53840",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "usb: early: xhci-dbc: Fix a potential out-of-bound memory access",
"summary": "In the Linux kernel, the following vulnerability has been resolved: usb: early: xhci-dbc: Fix a potential out-of-bound memory access If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called. Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen.",
"evidence": "osv:CVE-2023-53840",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.99",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.2.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53840",
"aliases": [
"CVE-2023-53840"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "aeb9dd1de98c1a5f2007ea5d2a154c1244caf8a0"
},
{
"fixed": "e8fb0f13e45cf361fd06593d3cb2d89915cd3bd0"
},
{
"fixed": "351c8d8650d1ccc006255fa01f98b6c6496a02e5"
},
{
"fixed": "df7c8aba7309f4dc55df94e06b67f576c0f52406"
},
{
"fixed": "a4a97ab3db5c081eb6e7dba91306adefb461e0bd"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53840.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.12.0"
},
{
"fixed": "5.15.99"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53840.json"
}
}
],
"modified": "2026-10-28T02:30:37.976581313Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/351c8d8650d1ccc006255fa01f98b6c6496a02e5",
"https://git.kernel.org/stable/c/a4a97ab3db5c081eb6e7dba91306adefb461e0bd",
"https://git.kernel.org/stable/c/df7c8aba7309f4dc55df94e06b67f576c0f52406",
"https://git.kernel.org/stable/c/e8fb0f13e45cf361fd06593d3cb2d89915cd3bd0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53840.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53840",
"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/53xxx/CVE-2023-53840.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53840",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 505419,
"published_at": "2025-12-09T01:29:56.848+00:00"
}