{"id":"CVE-2022-50485","summary":"ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode","details":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: add EXT4_IGET_BAD flag to prevent unexpected bad inode\n\nThere are many places that will get unhappy (and crash) when ext4_iget()\nreturns a bad inode. However, if iget the boot loader inode, allows a bad\ninode to be returned, because the inode may not be initialized. This\nmechanism can be used to bypass some checks and cause panic. To solve this\nproblem, we add a special iget flag EXT4_IGET_BAD. Only with this flag\nwe'd be returning bad inode from ext4_iget(), otherwise we always return\nthe error code if the inode is bad inode.(suggested by Jan Kara)","modified":"2026-04-02T08:28:32.867723Z","published":"2025-10-04T15:16:43.093Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4189-1","SUSE-SU-2025:4320-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50485.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2142dfa1de61e25b83198af0308ec7689cca25d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/488a5c2bf7543c3cd3f07a025f2e62be91599430"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f725b290ed79ad61e4f721fee95a287892d8b1ad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7e6b5548f915d7aa435d0764d41eacfb49c6e09"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50485.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50485"},{"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":"393d1d1d76933886d5e1ce603214c9987589c6d5"},{"fixed":"2142dfa1de61e25b83198af0308ec7689cca25d3"},{"fixed":"c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5"},{"fixed":"f7e6b5548f915d7aa435d0764d41eacfb49c6e09"},{"fixed":"f725b290ed79ad61e4f721fee95a287892d8b1ad"},{"fixed":"488a5c2bf7543c3cd3f07a025f2e62be91599430"},{"fixed":"63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50485.json"}}],"schema_version":"1.7.5"}