{"id":"CVE-2023-54065","published":"2025-12-24T12:23:10Z","modified":"2026-08-05T09:16:53Z","title":"net: dsa: realtek: fix out-of-bounds access","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: realtek: fix out-of-bounds access\n\nThe probe function sets priv->chip_data to (void *)priv + sizeof(*priv)\nwith the expectation that priv has enough trailing space.\n\nHowever, only realtek-smi actually allocated this chip_data space.\nDo likewise in realtek-mdio to fix out-of-bounds accesses.\n\nThese accesses likely went unnoticed so far, because of an (unused)\nbuf[4096] member in struct realtek_priv, which caused kmalloc to\nround up the allocated buffer to a big enough size, so nothing of\nvalue was overwritten. With a different allocator (like in the barebox\nbootloader port of the driver) or with KASAN, the memory corruption\nbecomes quickly apparent.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00152,"percentile":0.04353,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/cc0f9bb99735d2b68fac68f37b585d615728ce5b","tags":[]},{"url":"https://git.kernel.org/stable/c/fe668aa499b4b95425044ba11af9609db6ecf466","tags":[]},{"url":"https://git.kernel.org/stable/c/b93eb564869321d0dffaf23fcc5c88112ed62466","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":0.87},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= aac94001067da183455d6d37959892744fa01d9d, < cc0f9bb99735d2b68fac68f37b585d615728ce5b",">= aac94001067da183455d6d37959892744fa01d9d, < fe668aa499b4b95425044ba11af9609db6ecf466",">= aac94001067da183455d6d37959892744fa01d9d, < b93eb564869321d0dffaf23fcc5c88112ed62466"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2023-60261","exploited":false,"provenance":"source"}}