In the Linux kernel, the following vulnerability has been resolved:
pdscore: remove write-after-free of clientid
A use-after-free error popped up in stress testing:
[Mon Apr 21 21:21:33 2025] BUG: KFENCE: use-after-free write in pdscauxbusdevdel+0xef/0x160 [pdscore] [Mon Apr 21 21:21:33 2025] Use-after-free write at 0x000000007013ecd1 (in kfence-#47): [Mon Apr 21 21:21:33 2025] pdscauxbusdevdel+0xef/0x160 [pdscore] [Mon Apr 21 21:21:33 2025] pdscremove+0xc0/0x1b0 [pdscore] [Mon Apr 21 21:21:33 2025] pcideviceremove+0x24/0x70 [Mon Apr 21 21:21:33 2025] devicereleasedriverinternal+0x11f/0x180 [Mon Apr 21 21:21:33 2025] driverdetach+0x45/0x80 [Mon Apr 21 21:21:33 2025] busremovedriver+0x83/0xe0 [Mon Apr 21 21:21:33 2025] pciunregisterdriver+0x1a/0x80
The actual device uninit usually happens on a separate thread scheduled after this code runs, but there is no guarantee of order of thread execution, so this could be a problem. There's no actual need to clear the client_id at this point, so simply remove the offending code.
[
{
"digest": {
"function_hash": "16767964117432699913483191567535668915",
"length": 346.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c649b9653ed09196e91d3f4b16b679041b3c42e6",
"target": {
"function": "pdsc_auxbus_dev_del",
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-218d67a2"
},
{
"digest": {
"line_hashes": [
"279436672548021981464696388263483253775",
"288830527034011432445161926533907799129",
"284622315038020566539647029075750555237",
"160887226729125156663902399265345517350"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c649b9653ed09196e91d3f4b16b679041b3c42e6",
"target": {
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-3175a2c8"
},
{
"digest": {
"function_hash": "16767964117432699913483191567535668915",
"length": 346.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfd76010f8e821b66116dec3c7d90dd2403d1396",
"target": {
"function": "pdsc_auxbus_dev_del",
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-4ef1524e"
},
{
"digest": {
"line_hashes": [
"279436672548021981464696388263483253775",
"288830527034011432445161926533907799129",
"284622315038020566539647029075750555237",
"160887226729125156663902399265345517350"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfd76010f8e821b66116dec3c7d90dd2403d1396",
"target": {
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-6a800094"
},
{
"digest": {
"function_hash": "16767964117432699913483191567535668915",
"length": 346.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b467c5bcdb45a41d2a49fbb9ffca73d1380e99b",
"target": {
"function": "pdsc_auxbus_dev_del",
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-df07755f"
},
{
"digest": {
"function_hash": "16767964117432699913483191567535668915",
"length": 346.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@26dc701021302f11c8350108321d11763bd81dfe",
"target": {
"function": "pdsc_auxbus_dev_del",
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-e1ddd594"
},
{
"digest": {
"line_hashes": [
"279436672548021981464696388263483253775",
"288830527034011432445161926533907799129",
"284622315038020566539647029075750555237",
"160887226729125156663902399265345517350"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@26dc701021302f11c8350108321d11763bd81dfe",
"target": {
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-ee539916"
},
{
"digest": {
"line_hashes": [
"279436672548021981464696388263483253775",
"288830527034011432445161926533907799129",
"284622315038020566539647029075750555237",
"160887226729125156663902399265345517350"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b467c5bcdb45a41d2a49fbb9ffca73d1380e99b",
"target": {
"file": "drivers/net/ethernet/amd/pds_core/auxbus.c"
},
"id": "CVE-2025-37916-f9c247c3"
}
]