In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxt_re: Fix out of bound check
Driver exports pacing stats only on GenP5 and P7 adapters. But while parsing the pacing stats, driver has a check for "rdev->dbr_pacing". This caused a trace when KASAN is enabled.
BUG: KASAN: slab-out-of-bounds in bnxtregethwstats+0x2b6a/0x2e00 [bnxt_re] Write of size 8 at addr ffff8885942a6340 by task modprobe/4809
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c11b9b03ea5252898f91f3388c248f0dc47bda52",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "252960368077837455952537870653556780366",
"length": 2968.0
},
"id": "CVE-2024-50158-5af67b11",
"signature_type": "Function",
"target": {
"function": "bnxt_re_ib_get_hw_stats",
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9e6e7443922ac0a48243c35d03834c96926bff1",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "252960368077837455952537870653556780366",
"length": 2968.0
},
"id": "CVE-2024-50158-b3ef64d7",
"signature_type": "Function",
"target": {
"function": "bnxt_re_ib_get_hw_stats",
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c11b9b03ea5252898f91f3388c248f0dc47bda52",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209579767401608193298611608314723721411",
"78704986519028578206293452677460307604",
"159135947550334859068476742554749194535",
"100478743591223445898798102802908791425"
]
},
"id": "CVE-2024-50158-dea97ef3",
"signature_type": "Line",
"target": {
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c5fcc1869a08e36a29691699b6534e5a00a82b",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "252960368077837455952537870653556780366",
"length": 2968.0
},
"id": "CVE-2024-50158-e046e94f",
"signature_type": "Function",
"target": {
"function": "bnxt_re_ib_get_hw_stats",
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9e6e7443922ac0a48243c35d03834c96926bff1",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209579767401608193298611608314723721411",
"78704986519028578206293452677460307604",
"159135947550334859068476742554749194535",
"100478743591223445898798102802908791425"
]
},
"id": "CVE-2024-50158-e0d4a8a9",
"signature_type": "Line",
"target": {
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c5fcc1869a08e36a29691699b6534e5a00a82b",
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209579767401608193298611608314723721411",
"78704986519028578206293452677460307604",
"159135947550334859068476742554749194535",
"100478743591223445898798102802908791425"
]
},
"id": "CVE-2024-50158-e953eea2",
"signature_type": "Line",
"target": {
"file": "drivers/infiniband/hw/bnxt_re/hw_counters.c"
}
}
]