In the Linux kernel, the following vulnerability has been resolved:
bcache: revert replacing ISERRORNULL with ISERR again
Commit 028ddcac477b ("bcache: Remove unnecessary NULL point check in node allocations") leads a NULL pointer deference in cachesetflush().
1721 if (!ISERRORNULL(c->root)) 1722 listadd(&c->root->list, &c->btree_cache);
From the above code in cachesetflush(), if previous registration code fails before allocating c->root, it is possible c->root is NULL as what it is initialized. _bchbtreenodealloc() never returns NULL but c->root is possible to be NULL at above line 1721.
This patch replaces ISERR() by ISERRORNULL() to fix this.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb5fee35bdd18316a84b5f30881a24e1415e1464",
"id": "CVE-2024-48881-27e0926c"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e0e913624bcd24f3de414475018d3023f060ee1",
"id": "CVE-2024-48881-77a6f050"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cc05aa2c0117e20fa25a3c0d915f98b8f2e78667",
"id": "CVE-2024-48881-926b448d"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4379c5828492a4c2a651c8f826a01453bd2b80b0",
"id": "CVE-2024-48881-9283e874"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@336e30f32ae7c043fde0f6fa21586ff30bea9fe2",
"id": "CVE-2024-48881-b2483d45"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5202391970ffbf81975251b3526b890ba027b715",
"id": "CVE-2024-48881-e5a6a55c"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"113505392288436294716385686009736326970",
"44918911168444191833743732047144660589",
"171877370683559784611592195496473841593",
"8480383767299589011331797548321804148"
]
},
"target": {
"file": "drivers/md/bcache/super.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b2e382ae12a63560fca35050498e19e760adf8c0",
"id": "CVE-2024-48881-fdd6c86d"
}
]