{"id":"CVE-2024-42068","summary":"bpf: Take return from set_memory_ro() into account with bpf_prog_lock_ro()","details":"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.","modified":"2026-04-02T12:17:41.322906Z","published":"2024-07-29T15:52:32.538Z","related":["MGASA-2024-0277","MGASA-2024-0278"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42068.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/05412471beba313ecded95aa17b25fe84bb2551a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d2cc63eca0c993c99d18893214abf8f85d566d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a359696856ca9409fb97655c5a8ef0f549cb6e03"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e3540e5a7054d6daaf9a1415a48aacb092112a89"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e4f602e3ff749ba770bf8ff10196e18358de6720"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fdd411af8178edc6b7bf260f8fa4fba1bedd0a6d"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42068.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42068"},{"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":"60a3b2253c413cf601783b070507d7dd6620c954"},{"fixed":"a359696856ca9409fb97655c5a8ef0f549cb6e03"},{"fixed":"e4f602e3ff749ba770bf8ff10196e18358de6720"},{"fixed":"05412471beba313ecded95aa17b25fe84bb2551a"},{"fixed":"7d2cc63eca0c993c99d18893214abf8f85d566d8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42068.json"}}],"schema_version":"1.7.5"}