{"id":"CVE-2022-49675","summary":"tick/nohz: unexport __init-annotated tick_nohz_full_setup()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntick/nohz: unexport __init-annotated tick_nohz_full_setup()\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 had been broken for a decade.\n\nCommit 28438794aba4 (\"modpost: fix section mismatch check for exported\ninit/exit sections\") fixed it so modpost started to warn it again, then\nthis showed up:\n\n    MODPOST vmlinux.symvers\n  WARNING: modpost: vmlinux.o(___ksymtab_gpl+tick_nohz_full_setup+0x0): Section mismatch in reference from the variable __ksymtab_tick_nohz_full_setup to the function .init.text:tick_nohz_full_setup()\n  The symbol tick_nohz_full_setup is exported and annotated __init\n  Fix this by removing the __init annotation of tick_nohz_full_setup or drop the export.\n\nDrop the export because tick_nohz_full_setup() is only called from the\nbuilt-in code in kernel/sched/isolation.c.","modified":"2026-04-02T08:27:49.084533Z","published":"2025-02-26T02:24:07.395Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49675.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2390095113e98fc52fffe35c5206d30d9efe3f78"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4ff3ffe0138234774602152fe67e3a898c615c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea32b27e2f8c58c92bff5ecba7fcf64b97707089"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4a80ec8c51d68be4b7a7830c510f75080c5e417"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49675.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49675"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ae9e557b5be2e285f48ee945d9c8faf75d4f6a66"},{"fixed":"c4ff3ffe0138234774602152fe67e3a898c615c6"},{"fixed":"f4a80ec8c51d68be4b7a7830c510f75080c5e417"},{"fixed":"ea32b27e2f8c58c92bff5ecba7fcf64b97707089"},{"fixed":"2390095113e98fc52fffe35c5206d30d9efe3f78"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49675.json"}}],"schema_version":"1.7.5"}