{"id":"CVE-2024-50218","aliases":["CVE-2024-50218"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: pass u64 to ocfs2_truncate_inline maybe overflow\n\nSyzbot reported a kernel BUG in ocfs2_truncate_inline.  There are two\nreasons for this: first, the parameter value passed is greater than\nocfs2_max_inline_data_with_xattr, second, the start and end parameters of\nocfs2_truncate_inline are \"unsigned int\".\n\nSo, we need to add a sanity check for byte_start and byte_len right before\nocfs2_truncate_inline() in ocfs2_remove_inode_range(), if they are greater\nthan ocfs2_max_inline_data_with_xattr return -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: pass u64 to ocfs2_truncate_inline maybe overflow\n\nSyzbot reported a kernel BUG in ocfs2_truncate_inline.  There are two\nreasons for this: first, the parameter value passed is greater than\nocfs2_max_inline_data_with_xattr, second, the start and end parameters of\nocfs2_truncate_inline are \"unsigned int\".\n\nSo, we need to add a sanity check for byte_start and byte_len right before\nocfs2_truncate_inline() in ocfs2_remove_inode_range(), if they are greater\nthan ocfs2_max_inline_data_with_xattr return -EINVAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ocfs2: pasar u64 a ocfs2_truncate_inline puede provocar un desbordamiento Syzbot informó de un ERROR del kernel en ocfs2_truncate_inline. Hay dos razones para esto: primero, el valor del parámetro pasado es mayor que ocfs2_max_inline_data_with_xattr, segundo, los parámetros de inicio y fin de ocfs2_truncate_inline son \"unsigned int\". Por lo tanto, debemos agregar una comprobación de cordura para byte_start y byte_len justo antes de ocfs2_truncate_inline() en ocfs2_remove_inode_range(), si son mayores que ocfs2_max_inline_data_with_xattr devuelve -EINVAL.","source":"nvd"}],"published":"2024-11-09T10:14:29.708Z","modified":"2026-06-17T08:03:54.090Z","severity":{"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"},"severities":[{"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":[],"affected":[{"ranges":[{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"27d95867bee806cdc448d122bd99f1d8b0544035","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"95fbed8ae8c32c0977e6be1721c190d8fea23f2f","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"70767689ec6ee5f05fb0a2c17d7ec1927946e486","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"ecd62f684386fa64f9c0cea92eea361f4e6444c2","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"88f97a4b5843ce21c1286e082c02a5fb4d8eb473","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"0b6b8c2055784261de3fb641c5d0d63964318e8f","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.24","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.24","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.229","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.171","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.116","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.60","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.7","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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":"2.6.24","fixed":"4.19.323"},{"status":"affected","introduced":"4.20","fixed":"5.4.285"},{"status":"affected","introduced":"5.5","fixed":"5.10.229"},{"status":"affected","introduced":"5.11","fixed":"5.15.171"},{"status":"affected","introduced":"5.16","fixed":"6.1.116"},{"status":"affected","introduced":"6.2","fixed":"6.6.60"},{"status":"affected","introduced":"6.7","fixed":"6.11.7"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/27d95867bee806cdc448d122bd99f1d8b0544035","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95fbed8ae8c32c0977e6be1721c190d8fea23f2f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70767689ec6ee5f05fb0a2c17d7ec1927946e486","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ecd62f684386fa64f9c0cea92eea361f4e6444c2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88f97a4b5843ce21c1286e082c02a5fb4d8eb473","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b6b8c2055784261de3fb641c5d0d63964318e8f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50218","url":"https://www.cve.org/CVERecord?id=CVE-2024-50218","licence":"CVE Terms of Use","modified":"2026-05-11T20:47:42.525Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50218","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50218","licence":"Public domain","modified":"2026-06-17T08:03:54.090Z"}],"updatedAt":"2026-11-25T22:58:47.962Z","epss":{"score":0.00272,"percentile":0.2098,"date":"2026-12-01T12:00:22.000Z"}}