{"id":"CVE-2024-42068","aliases":["CVE-2024-42068"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()\n\nset_memory_ro() can fail, leaving memory unprotected.\n\nCheck its return and take it into account as an error.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()\n\nset_memory_ro() can fail, leaving memory unprotected.\n\nCheck its return and take it into account as an error.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: bpf: Tener en cuenta el retorno de set_memory_ro() con bpf_prog_lock_ro() set_memory_ro() puede fallar, dejando la memoria desprotegida. Comprueba su devolución y tenlo en cuenta como error.","source":"nvd"}],"published":"2024-07-29T15:52:32.538Z","modified":"2026-10-21T13:17:45.587Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"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-252"],"affected":[{"ranges":[{"type":"git","introduced":"60a3b2253c413cf601783b070507d7dd6620c954","fixed":"a359696856ca9409fb97655c5a8ef0f549cb6e03","status":"affected"},{"type":"git","introduced":"60a3b2253c413cf601783b070507d7dd6620c954","fixed":"e4f602e3ff749ba770bf8ff10196e18358de6720","status":"affected"},{"type":"git","introduced":"60a3b2253c413cf601783b070507d7dd6620c954","fixed":"2bbfffa802adc30b772d0e0f881a13c3804a965c","status":"affected"},{"type":"git","introduced":"60a3b2253c413cf601783b070507d7dd6620c954","fixed":"05412471beba313ecded95aa17b25fe84bb2551a","status":"affected"},{"type":"git","introduced":"60a3b2253c413cf601783b070507d7dd6620c954","fixed":"7d2cc63eca0c993c99d18893214abf8f85d566d8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.15.162","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.97","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.8","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","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","fixed":"5.15.162"},{"status":"affected","introduced":"5.16","fixed":"6.1.97"},{"status":"affected","introduced":"6.2","fixed":"6.6.37"},{"status":"affected","introduced":"6.7","fixed":"6.9.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bbfffa802adc30b772d0e0f881a13c3804a965c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:19:52.600Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42068","url":"https://www.cve.org/CVERecord?id=CVE-2024-42068","licence":"CVE Terms of Use","modified":"2026-10-21T12:34:58.185Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42068","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42068","licence":"Public domain","modified":"2026-10-21T13:17:45.587Z"}],"updatedAt":"2026-11-25T22:58:43.334Z","epss":{"score":0.00308,"percentile":0.25475,"date":"2026-12-01T12:00:22.000Z"}}