{"id":"CVE-2023-53224","aliases":["CVE-2023-53224"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: Fix function prototype mismatch for ext4_feat_ktype","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: Fix function prototype mismatch for ext4_feat_ktype\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed.\n\next4_feat_ktype was setting the \"release\" handler to \"kfree\", which\ndoesn't have a matching function prototype. Add a simple wrapper\nwith the correct prototype.\n\nThis was found as a result of Clang's new -Wcast-function-type-strict\nflag, which is more sensitive than the simpler -Wcast-function-type,\nwhich only checks for type width mismatches.\n\nNote that this code is only reached when ext4 is a loadable module and\nit is being unloaded:\n\n CFI failure at kobject_put+0xbb/0x1b0 (target: kfree+0x0/0x180; expected type: 0x7c4aa698)\n ...\n RIP: 0010:kobject_put+0xbb/0x1b0\n ...\n Call Trace:\n  <TASK>\n  ext4_exit_sysfs+0x14/0x60 [ext4]\n  cleanup_module+0x67/0xedb [ext4]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: Fix function prototype mismatch for ext4_feat_ktype\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed.\n\next4_feat_ktype was setting the \"release\" handler to \"kfree\", which\ndoesn't have a matching function prototype. Add a simple wrapper\nwith the correct prototype.\n\nThis was found as a result of Clang's new -Wcast-function-type-strict\nflag, which is more sensitive than the simpler -Wcast-function-type,\nwhich only checks for type width mismatches.\n\nNote that this code is only reached when ext4 is a loadable module and\nit is being unloaded:\n\n CFI failure at kobject_put+0xbb/0x1b0 (target: kfree+0x0/0x180; expected type: 0x7c4aa698)\n ...\n RIP: 0010:kobject_put+0xbb/0x1b0\n ...\n Call Trace:\n  <TASK>\n  ext4_exit_sysfs+0x14/0x60 [ext4]\n  cleanup_module+0x67/0xedb [ext4]","source":"cvelist"}],"published":"2025-09-15T14:21:53.061Z","modified":"2026-06-17T06:44:33.340Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"2b69cdd9f9a7f596e3dd31f05f9852940d177924","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"1ba10d3640e9783dad811fe4e24d55465c37c64d","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"c98077f7598a562f51051eec043be0cb3e1b1b5e","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"94d8de83286fb1827340eba35b61c308f6b46ead","status":"affected"},{"type":"git","introduced":"b99fee58a20ab8e0557cce87b6f187e325993142","fixed":"118901ad1f25d2334255b3d50512fa20591531cd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"4.19.274","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.233","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.170","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.96","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.14","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.1","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.16","fixed":"4.19.274"},{"status":"affected","introduced":"4.20","fixed":"5.4.233"},{"status":"affected","introduced":"5.5","fixed":"5.10.170"},{"status":"affected","introduced":"5.11","fixed":"5.15.96"},{"status":"affected","introduced":"5.16","fixed":"6.1.14"},{"status":"affected","introduced":"6.2","fixed":"6.2.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2b69cdd9f9a7f596e3dd31f05f9852940d177924","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ba10d3640e9783dad811fe4e24d55465c37c64d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c98077f7598a562f51051eec043be0cb3e1b1b5e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94d8de83286fb1827340eba35b61c308f6b46ead","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/118901ad1f25d2334255b3d50512fa20591531cd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T17:50:53.145Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53224","url":"https://www.cve.org/CVERecord?id=CVE-2023-53224","licence":"CVE Terms of Use","modified":"2026-05-11T19:40:39.797Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53224","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53224","licence":"Public domain","modified":"2026-06-17T06:44:33.340Z"}],"updatedAt":"2026-11-25T22:58:34.783Z","epss":{"score":0.00166,"percentile":0.06156,"date":"2026-12-01T12:00:22.000Z"}}