{"id":"CVE-2022-49408","published":"2025-02-26T02:12:32Z","modified":"2026-05-11T18:59:11Z","title":"ext4: fix memory leak in parse_apply_sb_mount_options()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix memory leak in parse_apply_sb_mount_options()\n\nIf processing the on-disk mount options fails after any memory was\nallocated in the ext4_fs_context, e.g. s_qf_names, then this memory is\nleaked.  Fix this by calling ext4_fc_free() instead of kfree() directly.\n\nReproducer:\n\n    mkfs.ext4 -F /dev/vdc\n    tune2fs /dev/vdc -E mount_opts=usrjquota=file\n    echo clear > /sys/kernel/debug/kmemleak\n    mount /dev/vdc /vdc\n    echo scan > /sys/kernel/debug/kmemleak\n    sleep 5\n    echo scan > /sys/kernel/debug/kmemleak\n    cat /sys/kernel/debug/kmemleak","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00281,"percentile":0.13194,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/9ea3e6168948189cec31d0678d2b55b395f88491","tags":[]},{"url":"https://git.kernel.org/stable/c/f92ded66e9d0aa20b883a2a5183973abc8f41815","tags":[]},{"url":"https://git.kernel.org/stable/c/c069db76ed7b681c69159f44be96d2137e9ca989","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.64},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7edfd85b1ffd36593011dec96ab395912a340418, < 9ea3e6168948189cec31d0678d2b55b395f88491",">= 7edfd85b1ffd36593011dec96ab395912a340418, < f92ded66e9d0aa20b883a2a5183973abc8f41815",">= 7edfd85b1ffd36593011dec96ab395912a340418, < c069db76ed7b681c69159f44be96d2137e9ca989"]},{"vendor":"Linux","product":"Linux","versions":["5.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T20:08:49.791211Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54821","exploited":false,"provenance":"source"}}