{"id":"CVE-2022-49726","state":"PUBLISHED","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 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)","publishedAt":"2025-02-26T02:24:38.003Z","updatedAt":"2026-05-11T19:05:39.715Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"cff3a7ce6e81418b6e8bac941779bbf5d342d626","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"db965e2757d95f695e606856418cd84003dd036d","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"0414eab7c78f3518143d383e448d44fc573ac6d2","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"937fcbb55a1e48a6422e87e8f49422c92265f102","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"245b993d8f6c4e25f19191edfbd8080b645e12b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clocksource/hyperv_timer.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.4.200","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.124","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.49","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.6","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clocksource/hyperv_timer.c"]}],"references":["https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626","https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d","https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2","https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102","https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49726.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49726","state":"PUBLISHED","datePublished":"2025-02-26T02:24:38.003Z","dateUpdated":"2026-05-11T19:05:39.715Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:21:30.448Z"},"containers":{"cna":{"title":"clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()","descriptions":[{"lang":"en","value":"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)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"cff3a7ce6e81418b6e8bac941779bbf5d342d626","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"db965e2757d95f695e606856418cd84003dd036d","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"0414eab7c78f3518143d383e448d44fc573ac6d2","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"937fcbb55a1e48a6422e87e8f49422c92265f102","versionType":"git"},{"version":"dd2cb348613b44f9d948b068775e159aad298599","status":"affected","lessThan":"245b993d8f6c4e25f19191edfbd8080b645e12b1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clocksource/hyperv_timer.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"5.4.200","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.124","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.49","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.6","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/clocksource/hyperv_timer.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cff3a7ce6e81418b6e8bac941779bbf5d342d626"},{"url":"https://git.kernel.org/stable/c/db965e2757d95f695e606856418cd84003dd036d"},{"url":"https://git.kernel.org/stable/c/0414eab7c78f3518143d383e448d44fc573ac6d2"},{"url":"https://git.kernel.org/stable/c/937fcbb55a1e48a6422e87e8f49422c92265f102"},{"url":"https://git.kernel.org/stable/c/245b993d8f6c4e25f19191edfbd8080b645e12b1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:05:39.715Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.4.200"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.10.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.15.49"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.18.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}