In the Linux kernel, the following vulnerability has been resolved:
bpf: Set run context for rawtp test_run callback
syzbot reported crash when rawtp program executed through the testrun interface calls bpfgetattachcookie helper or any other helper that touches task->bpf_ctx pointer.
Setting the run context (task->bpfctx pointer) for testrun callback.
{ "vanir_signatures": [ { "signature_version": "v1", "signature_type": "Line", "target": { "file": "net/bpf/test_run.c" }, "id": "CVE-2024-40908-0f52cad2", "digest": { "line_hashes": [ "30951097975145784558201939653177920262", "132111436143305343470637225023145756609", "16047429655537136262105893709822530478", "251834191366894125365727901037217795489", "308840291751504538289123914206631181337", "296736378206633219994193576080486555445", "260964902104506176812229649247025432253" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3708b6c2546c9eb34aead8a34a17e8ae69004e4d" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "net/bpf/test_run.c", "function": "__bpf_prog_test_run_raw_tp" }, "id": "CVE-2024-40908-17043936", "digest": { "length": 151.0, "function_hash": "101300591238920879724429457641916681699" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d0d1df8ba18abc57f28fb3bc053b2bf319367f2c" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "net/bpf/test_run.c", "function": "__bpf_prog_test_run_raw_tp" }, "id": "CVE-2024-40908-2d65599c", "digest": { "length": 151.0, "function_hash": "101300591238920879724429457641916681699" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d387805d4b4a46ee01e3dae133c81b6d80195e5b" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "net/bpf/test_run.c" }, "id": "CVE-2024-40908-47c0f4d8", "digest": { "line_hashes": [ "30951097975145784558201939653177920262", "132111436143305343470637225023145756609", "16047429655537136262105893709822530478", "251834191366894125365727901037217795489", "308840291751504538289123914206631181337", "296736378206633219994193576080486555445", "260964902104506176812229649247025432253" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d387805d4b4a46ee01e3dae133c81b6d80195e5b" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "net/bpf/test_run.c" }, "id": "CVE-2024-40908-564d6af1", "digest": { "line_hashes": [ "30951097975145784558201939653177920262", "132111436143305343470637225023145756609", "16047429655537136262105893709822530478", "251834191366894125365727901037217795489", "308840291751504538289123914206631181337", "296736378206633219994193576080486555445", "260964902104506176812229649247025432253" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d0d1df8ba18abc57f28fb3bc053b2bf319367f2c" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "net/bpf/test_run.c" }, "id": "CVE-2024-40908-63ff7583", "digest": { "line_hashes": [ "30951097975145784558201939653177920262", "132111436143305343470637225023145756609", "16047429655537136262105893709822530478", "251834191366894125365727901037217795489", "308840291751504538289123914206631181337", "296736378206633219994193576080486555445", "260964902104506176812229649247025432253" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789bd77c9342aa6125003871ae5c6034d0f6f9d2" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "net/bpf/test_run.c", "function": "__bpf_prog_test_run_raw_tp" }, "id": "CVE-2024-40908-8ea839f6", "digest": { "length": 151.0, "function_hash": "101300591238920879724429457641916681699" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789bd77c9342aa6125003871ae5c6034d0f6f9d2" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "net/bpf/test_run.c", "function": "__bpf_prog_test_run_raw_tp" }, "id": "CVE-2024-40908-b3c40f80", "digest": { "length": 151.0, "function_hash": "101300591238920879724429457641916681699" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3708b6c2546c9eb34aead8a34a17e8ae69004e4d" } ] }