In the Linux kernel, the following vulnerability has been resolved:
sfc: fix crash when reading stats while NIC is resetting
efxnetstats() (.ndogetstats64) can be called during an ethtool selftest, during which time nicdata->mcstats is NULL as the NIC has been fini'd. In this case do not attempt to fetch the latest stats from the hardware, else we will crash on a NULL dereference: BUG: kernel NULL pointer dereference, address: 0000000000000038 RIP efxnicupdatestats abridged calltrace: efxef10updatestatspf efxnetstats devgetstats devseqprintfstats Skipping the read is safe, we will simply give out stale stats. To ensure that the free in efxef10fininic() does not race against efxef10updatestatspf(), which could cause a TOCTTOU bug, take the efx->statslock in fininic (it is already held across updatestats).
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54156.json"
}