Files
vuln-cve/data/2026/53xxx/CVE-2026-53234.json
T

164 lines
8.2 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-53234",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2026-06-09T07:44:35.393Z",
"datePublished": "2026-06-25T08:39:31.852Z",
"dateUpdated": "2026-06-25T08:39:31.852Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-06-25T08:39:31.852Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ibm: emac: Fix use-after-free during device removal\n\nThe driver was using devm_register_netdev() which causes unregister_netdev()\nto be deferred until the devres cleanup phase, which runs after emac_remove()\nreturns. This creates a use-after-free window where:\n\n1. emac_remove() is called, which tears down hardware (cancels work, detaches\n modules, unregisters from MAL)\n2. emac_remove() returns\n3. devres cleanup runs and finally calls unregister_netdev()\n\nDuring step 3, the network stack might still process packets, triggering\nemac_irq(), emac_poll(), or other handlers that access now-freed hardware\nresources (dev->emacp, dev->mal, etc.).\n\nFix this by replacing devm_register_netdev() with manual register_netdev()\nand calling unregister_netdev() at the beginning of emac_remove(), before\nany hardware teardown. This ensures the network device is fully stopped and\nunregistered before hardware resources are released.\n\nThe change is safe because:\n- dev->ndev is assigned very early in probe (before any error paths that\n could bypass emac_remove)\n- platform_set_drvdata() is only called after successful registration, so\n emac_remove() only runs for fully registered devices\n- unregister_netdev() is idempotent and safe to call on any registered device"
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/net/ethernet/ibm/emac/core.c"
],
"versions": [
{
"version": "a4dd8535a527061a01f2fd335596fa77ca240a96",
"lessThan": "cf8e14db93eaecc4c0c58299be3b3183b0e53ed5",
"status": "affected",
"versionType": "git"
},
{
"version": "a4dd8535a527061a01f2fd335596fa77ca240a96",
"lessThan": "c09c2e236eef6f59e105f38a30f5439e6ccbcad7",
"status": "affected",
"versionType": "git"
},
{
"version": "a4dd8535a527061a01f2fd335596fa77ca240a96",
"lessThan": "c12584cd6078085d707266be864e7e1cc91d74e3",
"status": "affected",
"versionType": "git"
},
{
"version": "a4dd8535a527061a01f2fd335596fa77ca240a96",
"lessThan": "a0130d682222ae21afc395aead7cd2d87e1a8358",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/net/ethernet/ibm/emac/core.c"
],
"versions": [
{
"version": "6.12",
"status": "affected"
},
{
"version": "0",
"lessThan": "6.12",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.12.94",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.18.36",
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "7.0.13",
"lessThanOrEqual": "7.0.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "7.1",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.12",
"versionEndExcluding": "6.12.94"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.12",
"versionEndExcluding": "6.18.36"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.12",
"versionEndExcluding": "7.0.13"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.12",
"versionEndExcluding": "7.1"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/cf8e14db93eaecc4c0c58299be3b3183b0e53ed5"
},
{
"url": "https://git.kernel.org/stable/c/c09c2e236eef6f59e105f38a30f5439e6ccbcad7"
},
{
"url": "https://git.kernel.org/stable/c/c12584cd6078085d707266be864e7e1cc91d74e3"
},
{
"url": "https://git.kernel.org/stable/c/a0130d682222ae21afc395aead7cd2d87e1a8358"
}
],
"title": "net: ibm: emac: Fix use-after-free during device removal",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}