In the Linux kernel, the following vulnerability has been resolved:
usb: xhci: Add error handling in xhci_map_urb_for_dma
Currently xhci_map_urb_for_dma() creates a temporary buffer and copies
the SG list to the new linear buffer. But if the kzalloc_node() fails,
then the following sg_pcopy_to_buffer() can lead to crash since it
tries to memcpy to NULL pointer.
So return -ENOMEM if kzalloc returns null pointer.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "4a49d24fdec0",
"versionType": "git"
},
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "b2c898469dfc",
"versionType": "git"
},
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "620b6cf2f1a2",
"versionType": "git"
},
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "962300a360d2",
"versionType": "git"
},
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "7b6cc33593d7",
"versionType": "git"
},
{
"status": "affected",
"version": "2017a1e58472",
"lessThan": "be95cc6d71df",
"versionType": "git"
}
],
"programFiles": [
"drivers/usb/host/xhci.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.11",
"versionType": "custom"
},
{
"status": "unaffected",
"version": "5.15.154",
"versionType": "custom",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.84",
"versionType": "custom",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.24",
"versionType": "custom",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.7.12",
"versionType": "custom",
"lessThanOrEqual": "6.7.*"
},
{
"status": "unaffected",
"version": "6.8.3",
"versionType": "custom",
"lessThanOrEqual": "6.8.*"
},
{
"status": "unaffected",
"version": "6.9",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/usb/host/xhci.c"
],
"defaultStatus": "affected"
}
]
git.kernel.org/stable/c/4a49d24fdec0a802aa686a567a3989a9fdf4e5dd
git.kernel.org/stable/c/620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4
git.kernel.org/stable/c/7b6cc33593d7ccfc3011b290849cfa899db46757
git.kernel.org/stable/c/962300a360d24c5be5a188cda48da58a37e4304d
git.kernel.org/stable/c/b2c898469dfc388f619c6c972a28466cbb1442ea
git.kernel.org/stable/c/be95cc6d71dfd0cba66e3621c65413321b398052