{"id":"CVE-2022-49785","aliases":["CVE-2022-49785"],"related":[],"kind":"vulnerability","state":"published","title":"x86/sgx: Add overflow check in sgx_validate_offset_length()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/sgx: Add overflow check in sgx_validate_offset_length()\n\nsgx_validate_offset_length() function verifies \"offset\" and \"length\"\narguments provided by userspace, but was missing an overflow check on\ntheir addition. Add it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nx86/sgx: Add overflow check in sgx_validate_offset_length()\n\nsgx_validate_offset_length() function verifies \"offset\" and \"length\"\narguments provided by userspace, but was missing an overflow check on\ntheir addition. Add it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/sgx: Se ha añadido una comprobación de desbordamiento en sgx_validate_offset_length(). La función sgx_validate_offset_length() verifica los argumentos \"offset\" y \"length\" proporcionados por el espacio de usuario, pero no incluía una comprobación de desbordamiento al añadirlos. Añádala.","source":"nvd"}],"published":"2025-05-01T14:09:18.311Z","modified":"2026-06-17T05:19:08.540Z","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":"c6d26d370767fa227fc44b98a8bdad112efdf563","fixed":"5277e3d633a5d4157987f4aff068caa55e36db19","status":"affected"},{"type":"git","introduced":"c6d26d370767fa227fc44b98a8bdad112efdf563","fixed":"3b1c10fb754b0b67165e3f055a4208e5ba26dc89","status":"affected"},{"type":"git","introduced":"c6d26d370767fa227fc44b98a8bdad112efdf563","fixed":"f0861f49bd946ff94fce4f82509c45e167f63690","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.81","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.10","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","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":"5.11","fixed":"5.15.81"},{"status":"affected","introduced":"5.16","fixed":"6.0.10"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5277e3d633a5d4157987f4aff068caa55e36db19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b1c10fb754b0b67165e3f055a4208e5ba26dc89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0861f49bd946ff94fce4f82509c45e167f63690","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49785","url":"https://www.cve.org/CVERecord?id=CVE-2022-49785","licence":"CVE Terms of Use","modified":"2026-05-11T19:06:44.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49785","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49785","licence":"Public domain","modified":"2026-06-17T05:19:08.540Z"}],"updatedAt":"2026-11-25T22:58:20.869Z","epss":{"score":0.00203,"percentile":0.10881,"date":"2026-12-01T12:00:22.000Z"}}