{"id":"CVE-2024-42067","revision":"0ad1c1b70c5644c085e0005668aa1526","records":[{"revision":"0ad1c1b70c5644c085e0005668aa1526","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-42067","aliases":[],"title":"bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()\n\nset_memory_rox() can fail, leaving memory unprotected.\n\nCheck return and bail out when bpf_jit_binary_lock_ro() returns\nan error.","state":0,"publishedAt":"2024-07-29T15:52:31.825+00:00","modifiedAt":"2026-10-21T12:34:57.072+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"arch/arm/net/bpf_jit_32.c\",\n                        \"arch/loongarch/net/bpf_jit.c\",\n                        \"arch/mips/net/bpf_jit_comp.c\",\n                        \"arch/parisc/net/bpf_jit_core.c\",\n                        \"arch/s390/net/bpf_jit_comp.c\",\n                        \"arch/sparc/net/bpf_jit_comp_64.c\",\n                        \"arch/x86/net/bpf_jit_comp32.c\",\n                        \"include/linux/filter.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d48567c9a0d1e605639f8a8705a61bbb55fb4e84\",\n                            \"lessThan\": \"c20d0fa873039bce82d4b1b2ffcda8bb22242790\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d48567c9a0d1e605639f8a8705a61bbb55fb4e84\",\n                            \"lessThan\": \"044da7ae7afd4ef60806d73654a2e6a79aa4ed7a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d48567c9a0d1e605639f8a8705a61bbb55fb4e84\",\n                            \"lessThan\": \"e60adf513275c3a38e5cb67f7fd12387e43a3ff5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"arch/arm/net/bpf_jit_32.c\",\n                        \"arch/loongarch/net/bpf_jit.c\",\n                        \"arch/mips/net/bpf_jit_comp.c\",\n                        \"arch/parisc/net/bpf_jit_core.c\",\n                        \"arch/s390/net/bpf_jit_comp.c\",\n                        \"arch/sparc/net/bpf_jit_comp_64.c\",\n                        \"arch/x86/net/bpf_jit_comp32.c\",\n                        \"include/linux/filter.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.9.8\",\n                            \"lessThanOrEqual\": \"6.9.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.10\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/c20d0fa873039bce82d4b1b2ffcda8bb22242790","https://git.kernel.org/stable/c/044da7ae7afd4ef60806d73654a2e6a79aa4ed7a","https://git.kernel.org/stable/c/e60adf513275c3a38e5cb67f7fd12387e43a3ff5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-42067","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-42067","identifiers":["CVE-2024-42067"]},"retained":false,"historicalAffected":[]}],"coverage":[]}