sfc: fix crash when reading stats while NIC is resetting
In the Linux kernel, the following vulnerability has been resolved: sfc: fix crash when reading stats while NIC is resetting efx_net_stats() (.ndo_get_stats64) can be called during an ethtool selftest, during which time nic_data->mc_stats 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 efx_nic_update_stats abridged calltrace: efx_ef10_update_stats_pf efx_net_stats dev_get_stats dev_seq_printf_stats Skipping the read is safe, we will simply give out stale stats. To ensure that the free in efx_ef10_fini_nic() does not race against efx_ef10_update_stats_pf(), which could cause a TOCTTOU bug, take the efx->stats_lock in fini_nic (it is already held across update_stats).
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.188, 5.15.121, 6.1.39, 6.3.13, 6.4.4
- CVEs
- CVE-2023-54156
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:56 UTC · Revision 1
Source evidence
sfc: fix crash when reading stats while NIC is resetting
core-osv · Original sourcePublished 24 Dec 2025, 13:07 UTC
In the Linux kernel, the following vulnerability has been resolved: sfc: fix crash when reading stats while NIC is resetting efx_net_stats() (.ndo_get_stats64) can be called during an ethtool selftest, during which time nic_data->mc_stats 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 efx_nic_update_stats abridged calltrace: efx_ef10_update_stats_pf efx_net_stats dev_get_stats dev_seq_printf_stats Skipping the read is safe, we will simply give out stale stats. To ensure that the free in efx_ef10_fini_nic() does not race against efx_ef10_update_stats_pf(), which could cause a TOCTTOU bug, take the efx->stats_lock in fini_nic (it is already held across update_stats).
osv:CVE-2023-54156
Kernel
Fixed versions: 5.10.188, 5.15.121, 6.1.39, 6.3.13, 6.4.4
Complete source record
{
"id": "09a852619b785f99926c65080ad4a058c64ac1472d9349623f2e7e6c107a23d8",
"url": "https://osv.dev/vulnerability/CVE-2023-54156",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sfc: fix crash when reading stats while NIC is resetting",
"summary": "In the Linux kernel, the following vulnerability has been resolved: sfc: fix crash when reading stats while NIC is resetting efx_net_stats() (.ndo_get_stats64) can be called during an ethtool selftest, during which time nic_data->mc_stats 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 efx_nic_update_stats abridged calltrace: efx_ef10_update_stats_pf efx_net_stats dev_get_stats dev_seq_printf_stats Skipping the read is safe, we will simply give out stale stats. To ensure that the free in efx_ef10_fini_nic() does not race against efx_ef10_update_stats_pf(), which could cause a TOCTTOU bug, take the efx->stats_lock in fini_nic (it is already held across update_stats).",
"evidence": "osv:CVE-2023-54156",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.188",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.39",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-54156",
"aliases": [
"CVE-2023-54156"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d3142c193dca9a2f6878f4128ce1aaf221bb3f99"
},
{
"fixed": "cb1aa7cc562cab6a87ea33574c8c65f2d2fd7aeb"
},
{
"fixed": "91f4ef204e731565afdc6c2a7fcf509a3fd6fd67"
},
{
"fixed": "446f5567934331923d0aec4ce045e4ecb0174aae"
},
{
"fixed": "470152d76b3ed107d172ea46acc4bfa941f20b4b"
},
{
"fixed": "aba32b4c58112960c0c708703ca6b44dc8944082"
},
{
"fixed": "d1b355438b8325a486f087e506d412c4e852f37b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54156.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.9.0"
},
{
"fixed": "5.10.188"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.121"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.39"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.4.0"
},
{
"fixed": "6.4.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54156.json"
}
}
],
"modified": "2026-10-28T02:30:39.267044363Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/446f5567934331923d0aec4ce045e4ecb0174aae",
"https://git.kernel.org/stable/c/470152d76b3ed107d172ea46acc4bfa941f20b4b",
"https://git.kernel.org/stable/c/91f4ef204e731565afdc6c2a7fcf509a3fd6fd67",
"https://git.kernel.org/stable/c/aba32b4c58112960c0c708703ca6b44dc8944082",
"https://git.kernel.org/stable/c/cb1aa7cc562cab6a87ea33574c8c65f2d2fd7aeb",
"https://git.kernel.org/stable/c/d1b355438b8325a486f087e506d412c4e852f37b",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54156.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54156",
"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/54xxx/CVE-2023-54156.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54156",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506414,
"published_at": "2025-12-24T13:07:06.043+00:00"
}