wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
In the Linux kernel, the following vulnerability has been resolved: wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() The rtl8187_rx_cb() calculates the rx descriptor header address by subtracting its size from the skb tail pointer. However, it does not validate if the received packet (skb->len from urb->actual_length) is large enough to contain this header. If a truncated packet is received, this will lead to a buffer underflow, reading memory before the start of the skb data area, and causing a kernel panic. Add length checks for both rtl8187 and rtl8187b descriptor headers before attempting to access them, dropping the packet cleanly if the check fails.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.248, 5.15.198, 6.1.160, 6.12.63, 6.17.13, 6.18.2, 6.6.120
- CVEs
- CVE-2025-68362
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 05:22 UTC · Revision 1
Source evidence
wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
core-osv · Original sourcePublished 24 Dec 2025, 10:32 UTC
In the Linux kernel, the following vulnerability has been resolved: wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() The rtl8187_rx_cb() calculates the rx descriptor header address by subtracting its size from the skb tail pointer. However, it does not validate if the received packet (skb->len from urb->actual_length) is large enough to contain this header. If a truncated packet is received, this will lead to a buffer underflow, reading memory before the start of the skb data area, and causing a kernel panic. Add length checks for both rtl8187 and rtl8187b descriptor headers before attempting to access them, dropping the packet cleanly if the check fails.
osv:CVE-2025-68362
Kernel
Fixed versions: 5.10.248, 5.15.198, 6.1.160, 6.6.120, 6.12.63, 6.17.13, 6.18.2
Complete source record
{
"id": "405ad26d2acda103ca0e4aa37a2175402ade0f7a3ecee3988d56ada8d8f6214e",
"url": "https://osv.dev/vulnerability/CVE-2025-68362",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() The rtl8187_rx_cb() calculates the rx descriptor header address by subtracting its size from the skb tail pointer. However, it does not validate if the received packet (skb->len from urb->actual_length) is large enough to contain this header. If a truncated packet is received, this will lead to a buffer underflow, reading memory before the start of the skb data area, and causing a kernel panic. Add length checks for both rtl8187 and rtl8187b descriptor headers before attempting to access them, dropping the packet cleanly if the check fails.",
"evidence": "osv:CVE-2025-68362",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.248",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.198",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.120",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.63",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-68362",
"aliases": [
"CVE-2025-68362"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6f7853f3cbe457067e9fe05461f56c7ea4ac488c"
},
{
"fixed": "118e12bf3e4288cf845cd3759bd9d4c99f91aab5"
},
{
"fixed": "6a96bd0d94305fd04a6ac64446ec113bae289384"
},
{
"fixed": "e2f3ea15e804607e0a4a34a2f6c331c8750b68bc"
},
{
"fixed": "dc153401fb26c1640a2b279c47b65e1c416af276"
},
{
"fixed": "4758770a673c60d8f615809304d72e1432fa6355"
},
{
"fixed": "638d4148e166d114a4cd7becaae992ce1a815ed8"
},
{
"fixed": "5ebf0fe7eaef9f6173a4c6ea77c5353e21645d15"
},
{
"fixed": "b647d2574e4583c2e3b0ab35568f60c88e910840"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68362.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.27"
},
{
"fixed": "5.10.248"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.198"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.160"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.120"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.63"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68362.json"
}
}
],
"modified": "2026-10-28T02:30:42.935056864Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/118e12bf3e4288cf845cd3759bd9d4c99f91aab5",
"https://git.kernel.org/stable/c/4758770a673c60d8f615809304d72e1432fa6355",
"https://git.kernel.org/stable/c/5ebf0fe7eaef9f6173a4c6ea77c5353e21645d15",
"https://git.kernel.org/stable/c/638d4148e166d114a4cd7becaae992ce1a815ed8",
"https://git.kernel.org/stable/c/6a96bd0d94305fd04a6ac64446ec113bae289384",
"https://git.kernel.org/stable/c/b647d2574e4583c2e3b0ab35568f60c88e910840",
"https://git.kernel.org/stable/c/dc153401fb26c1640a2b279c47b65e1c416af276",
"https://git.kernel.org/stable/c/e2f3ea15e804607e0a4a34a2f6c331c8750b68bc",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68362.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-68362",
"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/2025/68xxx/CVE-2025-68362.json"
}
},
"related_cves": [
{
"value": "CVE-2025-68362",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 510677,
"published_at": "2025-12-24T10:32:50.492+00:00"
}