{"id":"CVE-2025-38086","aliases":["CVE-2025-38086"],"related":[],"kind":"vulnerability","state":"published","title":"net: ch9200: fix uninitialised access during mii_nway_restart","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ch9200: fix uninitialised access during mii_nway_restart\n\nIn mii_nway_restart() the code attempts to call\nmii->mdio_read which is ch9200_mdio_read(). ch9200_mdio_read()\nutilises a local buffer called \"buff\", which is initialised\nwith control_read(). However \"buff\" is conditionally\ninitialised inside control_read():\n\n        if (err == size) {\n                memcpy(data, buf, size);\n        }\n\nIf the condition of \"err == size\" is not met, then\n\"buff\" remains uninitialised. Once this happens the\nuninitialised \"buff\" is accessed and returned during\nch9200_mdio_read():\n\n        return (buff[0] | buff[1] << 8);\n\nThe problem stems from the fact that ch9200_mdio_read()\nignores the return value of control_read(), leading to\nuinit-access of \"buff\".\n\nTo fix this we should check the return value of\ncontrol_read() and return early on error.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ch9200: fix uninitialised access during mii_nway_restart\n\nIn mii_nway_restart() the code attempts to call\nmii->mdio_read which is ch9200_mdio_read(). ch9200_mdio_read()\nutilises a local buffer called \"buff\", which is initialised\nwith control_read(). However \"buff\" is conditionally\ninitialised inside control_read():\n\n        if (err == size) {\n                memcpy(data, buf, size);\n        }\n\nIf the condition of \"err == size\" is not met, then\n\"buff\" remains uninitialised. Once this happens the\nuninitialised \"buff\" is accessed and returned during\nch9200_mdio_read():\n\n        return (buff[0] | buff[1] << 8);\n\nThe problem stems from the fact that ch9200_mdio_read()\nignores the return value of control_read(), leading to\nuinit-access of \"buff\".\n\nTo fix this we should check the return value of\ncontrol_read() and return early on error.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: ch9200: corrección del acceso no inicializado durante mii_nway_restart. En mii_nway_restart(), el código intenta llamar a mii-&gt;mdio_read, que es ch9200_mdio_read(). ch9200_mdio_read() utiliza un búfer local llamado \"buff\", que se inicializa con control_read(). Sin embargo, \"buff\" se inicializa condicionalmente dentro de control_read(): if (err == size) { memcpy(data, buf, size); } Si no se cumple la condición \"err == size\", \"buff\" permanece sin inicializar. Una vez que esto sucede, se accede al \"buff\" no inicializado y se devuelve durante ch9200_mdio_read(): return (buff[0] | buff[1] &lt;&lt; 8); El problema se debe a que ch9200_mdio_read() ignora el valor de retorno de control_read(), lo que provoca un acceso uinit a \"buff\". Para solucionarlo, debemos comprobar el valor de retorno de control_read() y devolver el error antes de tiempo.","source":"nvd"}],"published":"2025-06-28T07:52:58.293Z","modified":"2026-11-05T21:18:09.203Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"119766de4930ff40db9f36b960cb53b0c400e81b","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"33163c68d2e3061fa3935b5f0a1867958b1cdbd2","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"9da3e442714f7f4393ff01c265c4959c03e88c2f","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"9a350f30d65197354706b7759b5c89d6c267b1a9","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"6bd2569d0b2f918e9581f744df0263caf73ee76c","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"4da7fcc098218ff92b2e83a43f545c02f714cedd","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"cdaa6d1cb2ff1219c6c822b27655dd170ffb0f72","status":"affected"},{"type":"git","introduced":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","fixed":"9ad0452c0277b816a435433cca601304cfac7c21","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.3","status":"unaffected"},{"type":"semver","introduced":"5.4.295","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.239","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.186","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.95","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.35","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.4","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.3.1","fixed":"5.4.295"},{"status":"affected","introduced":"5.5","fixed":"5.10.239"},{"status":"affected","introduced":"5.11","fixed":"5.15.186"},{"status":"affected","introduced":"5.16","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.95"},{"status":"affected","introduced":"6.7","fixed":"6.12.35"},{"status":"affected","introduced":"6.13","fixed":"6.15.4"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.3"},{"status":"affected","version":"4.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/119766de4930ff40db9f36b960cb53b0c400e81b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33163c68d2e3061fa3935b5f0a1867958b1cdbd2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9da3e442714f7f4393ff01c265c4959c03e88c2f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a350f30d65197354706b7759b5c89d6c267b1a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6bd2569d0b2f918e9581f744df0263caf73ee76c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4da7fcc098218ff92b2e83a43f545c02f714cedd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cdaa6d1cb2ff1219c6c822b27655dd170ffb0f72","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ad0452c0277b816a435433cca601304cfac7c21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:49:18.243Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38086","url":"https://www.cve.org/CVERecord?id=CVE-2025-38086","licence":"CVE Terms of Use","modified":"2026-11-05T20:52:15.111Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38086","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38086","licence":"Public domain","modified":"2026-11-05T21:18:09.203Z"}],"updatedAt":"2026-11-25T22:59:00.337Z","epss":{"score":0.00215,"percentile":0.12717,"date":"2026-12-01T12:00:22.000Z"}}