{"id":"CVE-2023-54065","aliases":["CVE-2023-54065"],"related":[],"kind":"vulnerability","state":"published","title":"net: dsa: realtek: fix out-of-bounds access","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-12-24T12:23:10.745Z","modified":"2026-08-05T09:16:53.228Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"aac94001067da183455d6d37959892744fa01d9d","fixed":"cc0f9bb99735d2b68fac68f37b585d615728ce5b","status":"affected"},{"type":"git","introduced":"aac94001067da183455d6d37959892744fa01d9d","fixed":"fe668aa499b4b95425044ba11af9609db6ecf466","status":"affected"},{"type":"git","introduced":"aac94001067da183455d6d37959892744fa01d9d","fixed":"b93eb564869321d0dffaf23fcc5c88112ed62466","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.23","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.10","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cc0f9bb99735d2b68fac68f37b585d615728ce5b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe668aa499b4b95425044ba11af9609db6ecf466","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b93eb564869321d0dffaf23fcc5c88112ed62466","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54065","url":"https://www.cve.org/CVERecord?id=CVE-2023-54065","licence":"CVE Terms of Use","modified":"2026-08-05T09:16:53.228Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54065","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54065","licence":"Public domain","modified":"2026-08-04T10:19:27.090Z"}],"updatedAt":"2026-11-25T22:58:35.161Z","epss":{"score":0.00163,"percentile":0.05765,"date":"2026-12-01T12:00:22.000Z"}}