{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38086","id":"CVE-2025-38086","title":"net: ch9200: fix uninitialised access during mii_nway_restart","description":"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        ","descriptionLong":"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.","published":"2025-06-28T07:52:58.293Z","updated":"2026-11-07T02:31:12.101938799Z","reserved":"2025-04-16T04:51:23.981Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"119766de4930ff40db9f36b960cb53b0c400e81b","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"33163c68d2e3061fa3935b5f0a1867958b1cdbd2","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"9da3e442714f7f4393ff01c265c4959c03e88c2f","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"9a350f30d65197354706b7759b5c89d6c267b1a9","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"6bd2569d0b2f918e9581f744df0263caf73ee76c","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"4da7fcc098218ff92b2e83a43f545c02f714cedd","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"cdaa6d1cb2ff1219c6c822b27655dd170ffb0f72","status":"affected","versionType":"git"},{"version":"4a476bd6d1d923922ec950ddc4c27b279f6901eb","lessThan":"9ad0452c0277b816a435433cca601304cfac7c21","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.3","status":"affected"},{"version":"0","lessThan":"4.3","status":"unaffected","versionType":"semver"},{"version":"5.4.295","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.239","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.186","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.95","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.35","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.4","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-908"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/119766de4930ff40db9f36b960cb53b0c400e81b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/33163c68d2e3061fa3935b5f0a1867958b1cdbd2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9da3e442714f7f4393ff01c265c4959c03e88c2f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9a350f30d65197354706b7759b5c89d6c267b1a9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6bd2569d0b2f918e9581f744df0263caf73ee76c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4da7fcc098218ff92b2e83a43f545c02f714cedd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cdaa6d1cb2ff1219c6c822b27655dd170ffb0f72","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9ad0452c0277b816a435433cca601304cfac7c21","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38086.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38086","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00206,"epssPercentile":0.10734,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38086","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38086","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38086","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38086","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}