{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49726","id":"CVE-2022-49726","title":"clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclocksource: hyper-v: unexport __init-annotated hv_init_clocksource()\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","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nclocksource: hyper-v: unexport __init-annotated hv_init_clocksource()\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,\narch/x86/kernel/cpu/mshyperv.c is never compiled as modular.\n(CONFIG_HYPERVISOR_GUEST is boolean)","published":"2025-02-26T02:24:38.003Z","updated":"2026-10-28T02:31:13.134534982Z","reserved":"2025-02-26T02:21:30.448Z","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":"dd2cb348613b44f9d948b068775e159aad298599","lessThan":"cff3a7ce6e81418b6e8bac941779bbf5d342d626","status":"affected","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","lessThan":"db965e2757d95f695e606856418cd84003dd036d","status":"affected","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","lessThan":"0414eab7c78f3518143d383e448d44fc573ac6d2","status":"affected","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","lessThan":"937fcbb55a1e48a6422e87e8f49422c92265f102","status":"affected","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","lessThan":"245b993d8f6c4e25f19191edfbd8080b645e12b1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"5.4.200","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.124","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.49","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.6","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/cff3a7ce6e81418b6e8bac941779bbf5d342d626","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49726.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49726","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.00273,"epssPercentile":0.20027,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49726","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49726","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49726","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-49726","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}