{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49350","id":"CVE-2022-49350","title":"net: mdio: unexport __init-annotated mdio_bus_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mdio: unexport __init-annotated mdio_bus_init()\n\nEXPORT_SYMBOL and __init is a bad combination because the .init.text\nsection is freed up after the initialization. Hence, modules cannot\nuse symbols annotated __init. The access to a freed symbol may end up\nwith kernel panic.\n\nmodpost used to detect it, but it has been broken ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mdio: unexport __init-annotated mdio_bus_init()\n\nEXPORT_SYMBOL and __init is a bad combination because the .init.text\nsection is freed up after the initialization. Hence, modules cannot\nuse symbols annotated __init. The access to a freed symbol may end up\nwith kernel panic.\n\nmodpost used to detect it, but it has been broken for a decade.\n\nRecently, I fixed modpost so it started to warn it again, then this\nshowed up in linux-next builds.\n\nThere are two ways to fix it:\n\n  - Remove __init\n  - Remove EXPORT_SYMBOL\n\nI chose the latter for this case because the only in-tree call-site,\ndrivers/net/phy/phy_device.c is never compiled as modular.\n(CONFIG_PHYLIB is boolean)","published":"2025-02-26T02:11:03.514Z","updated":"2026-10-28T02:30:47.913682790Z","reserved":"2025-02-26T02:08:31.544Z","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":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"ab64ec2c75683f30ccde9eaaf0761002f901aa12","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"5534bcd7c40299862237c4a8fd9c5031b3db1538","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"6a90a44d53428a3bf01bd80df9ba78b19959270c","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"7759c3222815b945a94b212bc0c6cdec475cfec2","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"59fa94cddf9eef8d8dae587373eed8b8f4eb11d7","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"f5c68137f1191ba3fcf6260ec71b30be2e2bf4c3","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"f2f0f8c18b60ca64ff50892ed899cf1c77864755","status":"affected","versionType":"git"},{"version":"90eff9096c01ba90cdae504a6b95ee87fe2556a3","lessThan":"35b42dce619701f1300fb8498dae82c9bb1f0263","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","lessThan":"4.12","status":"unaffected","versionType":"semver"},{"version":"4.14.283","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.247","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.198","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.122","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.47","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.17.15","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18.4","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-908"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/ab64ec2c75683f30ccde9eaaf0761002f901aa12","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5534bcd7c40299862237c4a8fd9c5031b3db1538","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6a90a44d53428a3bf01bd80df9ba78b19959270c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7759c3222815b945a94b212bc0c6cdec475cfec2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/59fa94cddf9eef8d8dae587373eed8b8f4eb11d7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f5c68137f1191ba3fcf6260ec71b30be2e2bf4c3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f2f0f8c18b60ca64ff50892ed899cf1c77864755","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/35b42dce619701f1300fb8498dae82c9bb1f0263","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49350.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49350","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":null,"epss":0.00284,"epssPercentile":0.21324,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49350","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49350","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49350","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-2022-49350","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}