In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Fix crash during module load unload test
During purex packet handling the driver was incorrectly freeing a pre-allocated structure. Fix this by skipping that entry.
System crashed with the following stack during a module unload test.
Call Trace: sbitmapinitnode+0x7f/0x1e0 sbitmapqueueinitnode+0x24/0x150 blkmqinitbitmaps+0x3d/0xa0 blkmqinittags+0x68/0x90 blkmqallocmapandrqs+0x44/0x120 blkmqallocsetmapandrqs+0x63/0x150 blkmqalloctagset+0x11b/0x230 scsiaddhostwithdma.cold+0x3f/0x245 qla2x00probeone+0xd5a/0x1b80 [qla2xxx]
Call Trace with slubdebug and debug kernel: kasanreportinvalidfree+0x50/0x80 _kasanslabfree+0x137/0x150 slabfreefreelisthook+0xc6/0x190 kfree+0xe8/0x2e0 qla2x00freedevice+0x3bb/0x5d0 [qla2xxx] qla2x00removeone+0x668/0xcf0 [qla2xxx]
[
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67f744f73eba870ab96411d0310e831a4adc3713",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c"
},
"id": "CVE-2022-49160-0785cd50",
"digest": {
"line_hashes": [
"165146308202394882760571200926009786620",
"60150589096835717201247581516833774914",
"282895955599528340690020750362594151514",
"340258904661328825290685451089326906452"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0972252450f90db56dd5415a20e2aec21a08d036",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c",
"function": "qla24xx_free_purex_list"
},
"id": "CVE-2022-49160-2588e2d2",
"digest": {
"function_hash": "164072159768805924070270685048914253146",
"length": 276.0
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b7eb92dac240ab3bc83e188d83a3df834b41eb2",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c",
"function": "qla24xx_free_purex_list"
},
"id": "CVE-2022-49160-276e42b7",
"digest": {
"function_hash": "164072159768805924070270685048914253146",
"length": 276.0
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b7eb92dac240ab3bc83e188d83a3df834b41eb2",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c"
},
"id": "CVE-2022-49160-2aca52db",
"digest": {
"line_hashes": [
"165146308202394882760571200926009786620",
"60150589096835717201247581516833774914",
"282895955599528340690020750362594151514",
"340258904661328825290685451089326906452"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@213e57b42537f1a2e5395caa9d7189854133ed12",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c",
"function": "qla24xx_free_purex_list"
},
"id": "CVE-2022-49160-465bfa5b",
"digest": {
"function_hash": "164072159768805924070270685048914253146",
"length": 276.0
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0972252450f90db56dd5415a20e2aec21a08d036",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c"
},
"id": "CVE-2022-49160-483dbfc3",
"digest": {
"line_hashes": [
"165146308202394882760571200926009786620",
"60150589096835717201247581516833774914",
"282895955599528340690020750362594151514",
"340258904661328825290685451089326906452"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@213e57b42537f1a2e5395caa9d7189854133ed12",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c"
},
"id": "CVE-2022-49160-ded1f988",
"digest": {
"line_hashes": [
"165146308202394882760571200926009786620",
"60150589096835717201247581516833774914",
"282895955599528340690020750362594151514",
"340258904661328825290685451089326906452"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67f744f73eba870ab96411d0310e831a4adc3713",
"target": {
"file": "drivers/scsi/qla2xxx/qla_os.c",
"function": "qla24xx_free_purex_list"
},
"id": "CVE-2022-49160-e999cb3d",
"digest": {
"function_hash": "164072159768805924070270685048914253146",
"length": 276.0
},
"signature_version": "v1"
}
]