In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: fix kernel crash if commands allocation fails
If the commands allocation fails in nvmet_tcp_alloc_cmds()
the kernel crashes in nvmet_tcp_release_queue_work() because of
a NULL pointer dereference.
nvmet: failed to install queue 0 cntlid 1 ret 6
Unable to handle kernel NULL pointer dereference at
virtual address 0000000000000008
Fix the bug by setting queue->nr_cmds to zero in case
nvmet_tcp_alloc_cmd() fails.
[
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/nvme/target/tcp.c"
],
"versions": [
{
"version": "872d26a391da",
"lessThan": "03e1fd0327fa",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "50632b877ce5",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "91dad30c5607",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "7957c731fc2b",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "489f2913a63f",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "6c04d1e3ab22",
"status": "affected",
"versionType": "git"
},
{
"version": "872d26a391da",
"lessThan": "5572a55a6f83",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/nvme/target/tcp.c"
],
"versions": [
{
"version": "5.0",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.0",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.4.284",
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.10.226",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "5.15.167",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.1.110",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.6.51",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.10.10",
"lessThanOrEqual": "6.10.*",
"status": "unaffected",
"versionType": "custom"
},
{
"version": "6.11",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
]
git.kernel.org/stable/c/03e1fd0327fa5e2174567f5fe9290fe21d21b8f4
git.kernel.org/stable/c/489f2913a63f528cfe3f21722583fb981967ecda
git.kernel.org/stable/c/50632b877ce55356f5d276b9add289b1e7ddc683
git.kernel.org/stable/c/5572a55a6f830ee3f3a994b6b962a5c327d28cb3
git.kernel.org/stable/c/6c04d1e3ab22cc5394ef656429638a5947f87244
git.kernel.org/stable/c/7957c731fc2b23312f8935812dee5a0b14b04e2d
git.kernel.org/stable/c/91dad30c5607e62864f888e735d0965567827bdf