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.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3708b6c2546c9eb34aead8a34a17e8ae69004e4d",
"target": {
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-0f52cad2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"30951097975145784558201939653177920262",
"132111436143305343470637225023145756609",
"16047429655537136262105893709822530478",
"251834191366894125365727901037217795489",
"308840291751504538289123914206631181337",
"296736378206633219994193576080486555445",
"260964902104506176812229649247025432253"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d0d1df8ba18abc57f28fb3bc053b2bf319367f2c",
"target": {
"function": "__bpf_prog_test_run_raw_tp",
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-17043936",
"signature_version": "v1",
"digest": {
"length": 151.0,
"function_hash": "101300591238920879724429457641916681699"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d387805d4b4a46ee01e3dae133c81b6d80195e5b",
"target": {
"function": "__bpf_prog_test_run_raw_tp",
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-2d65599c",
"signature_version": "v1",
"digest": {
"length": 151.0,
"function_hash": "101300591238920879724429457641916681699"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d387805d4b4a46ee01e3dae133c81b6d80195e5b",
"target": {
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-47c0f4d8",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"30951097975145784558201939653177920262",
"132111436143305343470637225023145756609",
"16047429655537136262105893709822530478",
"251834191366894125365727901037217795489",
"308840291751504538289123914206631181337",
"296736378206633219994193576080486555445",
"260964902104506176812229649247025432253"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d0d1df8ba18abc57f28fb3bc053b2bf319367f2c",
"target": {
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-564d6af1",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"30951097975145784558201939653177920262",
"132111436143305343470637225023145756609",
"16047429655537136262105893709822530478",
"251834191366894125365727901037217795489",
"308840291751504538289123914206631181337",
"296736378206633219994193576080486555445",
"260964902104506176812229649247025432253"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789bd77c9342aa6125003871ae5c6034d0f6f9d2",
"target": {
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-63ff7583",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"30951097975145784558201939653177920262",
"132111436143305343470637225023145756609",
"16047429655537136262105893709822530478",
"251834191366894125365727901037217795489",
"308840291751504538289123914206631181337",
"296736378206633219994193576080486555445",
"260964902104506176812229649247025432253"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789bd77c9342aa6125003871ae5c6034d0f6f9d2",
"target": {
"function": "__bpf_prog_test_run_raw_tp",
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-8ea839f6",
"signature_version": "v1",
"digest": {
"length": 151.0,
"function_hash": "101300591238920879724429457641916681699"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae0ba0ab7475a129ef7d449966edf677367efeb4",
"target": {
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-9d54426c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"30951097975145784558201939653177920262",
"132111436143305343470637225023145756609",
"16047429655537136262105893709822530478",
"251834191366894125365727901037217795489",
"308840291751504538289123914206631181337",
"296736378206633219994193576080486555445",
"260964902104506176812229649247025432253"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3708b6c2546c9eb34aead8a34a17e8ae69004e4d",
"target": {
"function": "__bpf_prog_test_run_raw_tp",
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-b3c40f80",
"signature_version": "v1",
"digest": {
"length": 151.0,
"function_hash": "101300591238920879724429457641916681699"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae0ba0ab7475a129ef7d449966edf677367efeb4",
"target": {
"function": "__bpf_prog_test_run_raw_tp",
"file": "net/bpf/test_run.c"
},
"deprecated": false,
"id": "CVE-2024-40908-ff095959",
"signature_version": "v1",
"digest": {
"length": 151.0,
"function_hash": "101300591238920879724429457641916681699"
},
"signature_type": "Function"
}
]