총 16,343건
CVE-2026-89855
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Serialize flash version read in reset handler The "update cache versions without reset" sysfs reset operation (0x20261) calls get_flash_version(), which reads hardware flash registers, without holding ha->optrom_mutex. The VPD update path serializes the same call under optrom_mutex, so this reset path can interleave its flash register accesses with a concurrent VPD or optrom flash operation and corrupt the reads. Hold ha->optrom_mutex across the get_flash_version() call to match the VPD update path.
CVE-2026-89854
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: 호스트 종료 시 cs84xx 해제 후 사용(use-after-free) 문제 수정 qla84xx_put_chip() 함수는 ha->cs84xx에 대한 마지막 참조를 해제하고 __qla84xx_chip_release()를 통해 이를 해제하지만 ha->cs84xx를 초기화하지 않는다. 종료 과정에서 이 함수는 84xx_fw_version 호스트 sysfs 속성을 제거하는 scsi_remove_host() 함수보다 먼저 실행된다. 두 호출 사이의 시간 동안 해당 속성을 동시에 읽으면 qla24xx_84xx_fw_version_show()가 실행되어 해제된 ha->cs84xx를 역참조하게 되어 use-after-free가 발생한다. qla84xx_put_chip()를 qla2x00_remove_one()과 qla2x00_disable_board_on_pci_error() 함수 내에서 scsi_remove_host() 호출 이후로 이동시켰다. scsi_remove_host()가 반환되면 sysfs 속성이 제거되고 kernfs가 진행 중인 show() 호출을 모두 처리하여 어떤 읽기 작업도 cs84xx에 접근할 수 없게 된다; put 호출은 여전히 호스트와 ha가 해제되기 전에 실행된다.
CVE-2026-89853
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix FCE trace use-after-free during firmware dump qla2x00_free_fce_trace() freed and cleared ha->fce while holding only fce_mutex. The firmware-dump consumers qla27xx_fwdt_entry_t264() and qla25xx_copy_fce() read ha->fce (NULL check followed by a copy of the buffer) under hardware_lock and never take fce_mutex. A debugfs FCE disable could therefore free the DMA buffer between a dump's NULL check and its copy, resulting in a use-after-free. Unpublish ha->fce under hardware_lock, then release the lock and free the DMA buffer (dma_free_coherent() may sleep). A concurrent dump either completes its check and copy with the buffer still valid, or observes ha->fce == NULL and skips it.
CVE-2026-89852
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Zero mailbox struct in qla2x00_get_firmware_state() The mbx_cmd_t is allocated on the stack but left uninitialized. qla2x00_mailbox_command() has several early-return paths (PCI permanent failure, device failed, EEH busy, ISP abort pending, mailbox access timeout, purge mbox) that return without writing the input mailbox registers back into mcp->mb[]. qla2x00_get_firmware_state() then unconditionally copies mcp->mb[1..6] (and mb[12]) into the caller's states[] array regardless of the return value. On such a failure the copied values are uninitialized kernel stack memory, which is then exposed to userspace via the fw_state and mpi_fw_state sysfs handlers. Zero the mailbox struct so a failed query yields deterministic zeroed state instead of leaking stack contents.
CVE-2026-89851
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Fix FCE trace enable parsing in debugfs qla2x00_dfs_fce_write() called kstrtoul() with a NULL result pointer, so a successful parse would dereference NULL and oops. Worse, the int return value (0 on success, negative errno on failure) was assigned to the unsigned long enable flag, inverting the intended logic: a valid number was treated as "disable" while a parse failure enabled FCE. Parse the value into enable and propagate parse errors to userspace.
CVE-2026-89850
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Don't query firmware state while chip is down qla2x00_fw_state_show() initializes rval to QLA_FUNCTION_FAILED and jumps to the out: label when the chip is down or EEH is busy. The out: block then re-issued qla2x00_get_firmware_state() because rval != QLA_SUCCESS, defeating the chip-down/EEH-busy guards and issuing a mailbox command (outside optrom_mutex) during ISP reset or PCI error recovery, which can hang the adapter. It also turned a normal in-lock mailbox failure into a second unsynchronized mailbox attempt. Make the out: fallback only mark the firmware state as unknown. The mailbox is now issued at most once, inside optrom_mutex, and only when the chip is up and not EEH-busy.
CVE-2026-89849
2026년 9월 16일리눅스 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: 상태 IOCB 빠른 경로에서 비-SCSI SRB 거부 qla2x00_status_entry()는 TYPE_SRB가 아닌 항목과 SRB_NVME_CMD, SRB_BIDI_CMD, SRB_TM_CMD 유형을 필터링한 후, 명령이 SRB_SCSI_CMD라고 가정하는 SCSI 빠른 경로로 넘어간다. 이 경로의 첫 번째 함수인 qla_chk_edif_rx_sa_delete_pending()와 이후 처리 과정 모두 GET_CMD_SP(sp), 즉 sp->u.scmd.cmd를 평가한다. srb u 공용체는 SCSI 명령 포인터를 다른 명령 레이아웃(bsg_job, iocb_cmd)과 오버레이한다. 펌웨어가 비-SCSI 핸들에 대해 예상치 못한 STATUS_TYPE IOCB를 전달하면 sp->u.scmd.cmd가 NULL이 아닌 쓰레기 포인터로 읽혀 qla_chk_edif_rx_sa_delete_pending()의 NULL 검사와 cp == NULL 검사 우회를 허용하여 와일드 포인터 역참조가 발생할 수 있다. 빠른 경로에 진입하기 전에 SRB 유형이 SRB_SCSI_CMD가 아닌 모든 SRB를 거부한다. outstanding_cmds 슬롯은 변경하지 않아 진짜 비-SCSI 명령은 적절한 핸들러를 통해 정상적으로 완료된다.
CVE-2026-89848
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: 요청 큐를 해제하기 전에 응답 IRQ를 정지시킴 qla2xxx_delete_qpair()는 응답 큐보다 먼저 요청 큐를 삭제한다. qla25xx_delete_req_que()는 요청 큐 메모리를 해제(kfree(req) in qla25xx_free_req_que())하지만, 응답 큐 MSI-X는 나중에 qla25xx_free_rsp_que()에서만 해제된다. 이 사이에 응답 인터럽트가 여전히 발생할 수 있으며, qla2xxx_msix_rsp_q()는 qpair->q_work를 큐에 넣고, qla_do_work() -> qla24xx_process_response_queue()는 이제 해제된 rsp->req(LOGINOUT/CT/ELS 항목 및 상태 경로)를 역참조하여 해제 후 사용(use-after-free)이 발생한다. qpair 해제 시 추가된 cancel_work_sync()는 요청 큐가 이미 해제된 후 실행되는 응답 해제 경로에 존재하여 rsp->req를 보호하지 못한다. 요청 큐를 삭제하기 전에 응답 큐 인터럽트를 해제하고 qpair->q_work를 플러시하여 늦은 완료가 해제된 요청 큐에 도달하지 않도록 한다. have_irq를 클리어하면 이후 qla25xx_free_rsp_que()가 free_irq()를 건너뛰고, 펌웨어 큐 삭제 순서(요청 후 응답)가 유지된다; 요청 삭제 메일박스는 기본 벡터에서 완료되며 qpair 응답 인터럽트를 조기에 중단해도 영향을 받지 않는다.
CVE-2026-89847
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: 비동기 IOCB 타임아웃 시 이중 완료 방지 qla2x00_async_iocb_timeout() 함수는 타임아웃된 비동기 IOCB를 중단하려고 시도한다. qla24xx_async_abort_cmd()가 실패하면, SRB_LOGIN_CMD 경로와 SRB_CTRL_VP/기본 경로 모두 outstanding_cmds[]에서 SRB를 검색한 후 SRB가 실제로 발견되어 제거되었는지 확인하지 않고 무조건 sp->done(sp, QLA_FUNCTION_TIMEOUT)를 호출한다. 응답 ISR이 동일한 핸들을 먼저 완료하면, qp_lock_ptr 아래에서 SRB를 제거하고 sp->done() -> complete(sp->comp)를 실행한다. 제출자 qla24xx_control_vp()는 wait_for_completion()에서 깨어나 sp->comp를 초기화하고 참조를 해제하며, 스택 상의 완료 객체를 회수한다. 타이머 참조는 타임아웃 핸들러 동안 SRB를 유지하지만 제출자의 스택은 유지하지 않는다. 타임아웃은 두 번째 sp->done() -> qla_ctrlvp_sp_done()를 호출하는데, 여기서 "if (sp->comp) complete(sp->comp)"를 평가한다. 제출자가 NULL 저장을 하기 전의 포인터를 로드하여 complete()가 해제된 스택 프레임에 쓰기를 수행하는 use-after-free가 발생한다. 이 경로가 outstanding_cmds에서 SRB를 제거했는지 추적하고, 제거했을 때만 sp->done()을 호출하여 명령이 소유한 경로에 의해 정확히 한 번 완료되도록 한다. 이는 qla24xx_abort_iocb_timeout()에서 이미 사용 중인 sp_found 가드와 동일한 방식이다.
CVE-2026-89846
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: OOB 센스 데이터 읽기를 방지하기 위해 rsp_info_len 경계 설정 qla2x00_status_entry()에서 FWI2 상태 경로가 sense_data를 증가시키고 par_sense_len을 rsp_info_len만큼 감소시킨다: if (IS_FWI2_CAPABLE(ha)) { sense_data += rsp_info_len; par_sense_len -= rsp_info_len; } rsp_info_len은 대상의 FCP 응답(sf.rsp_data_len)에서 직접 가져온 32비트 값이며, par_sense_len은 IOCB 데이터 영역 크기(24xx는 28바이트, 29xx는 60바이트)이다. 악의적이거나 버그가 있는 대상이 par_sense_len보다 큰 rsp_info_len을 보고하면 부호 없는 뺄셈이 언더플로되어 큰 값이 되고 sense_data가 범위를 벗어나게 된다. 언더플로된 par_sense_len은 qla2x00_handle_sense()의 제한을 무력화한다: if (sense_len > par_sense_len) sense_len = par_sense_len; memcpy(cp->sense_buffer, sense_data, sense_len); 따라서 memcpy가 범위를 벗어난 sense_data 포인터에서 최대 SCSI_SENSE_BUFFERSIZE 바이트를 읽어 인접한 응답 링/힙 메모리를 명령의 센스 버퍼로 유출한다. 뺄셈 전에 rsp_info_len을 par_sense_len으로 제한하여 par_sense_len이 언더플로되지 않고 sense_data가 IOCB 데이터 영역 내에 머무르도록 한다. 이 수정은 comp_status 스위치 이전에 위치하여 qla2x00_handle_sense() 두 호출 지점을 모두 포함한다.
CVE-2026-89845
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Avoid req_q_map double-read in qla2x00_error_entry() qla2x00_error_entry() reads ha->req_q_map[que] twice: once for the NULL check and again when assigning it to req. The map slot is cleared by qla25xx_free_req_que() (ha->req_q_map[que_id] = NULL under mq_lock) during queue teardown, while the response-queue interrupt that drives qla2x00_error_entry() is still registered (the IRQ is released later in qla25xx_free_rsp_que()). If the slot is set to NULL between the two reads, req becomes NULL and is dereferenced. Read the slot once into req and NULL-check the local before use. mq_lock is a mutex and cannot be taken from interrupt context, so the single read plus local check is the appropriate fix for the reported NULL dereference.
CVE-2026-89844
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: scsi: qla2xxx: report ID 획득 시 호스트 맵 업데이트를 위해 vport_slock 유지 qla24xx_report_id_acquisition() 함수의 format-1 처리에서 vport 참조를 취한 후 vport_slock을 해제하고, 잠금 없이 qla_update_host_map()을 호출한다. 이 함수는 qla_update_vp_map()에 도달하며, 이 함수는 btree_insert32()/btree_update32()/btree_remove32()를 통해 ha->host_map btree를 변경하는데, 호출자가 vport_slock을 유지해야 한다고 문서화되어 있다. 잠금 없이 실행하면 동시 host_map 업데이트와 경쟁 상태가 발생하여 btree가 손상될 수 있다. 같은 함수의 format-2 경로는 이미 vport_slock 내에서 host_map 업데이트(SET_AL_PA)를 감싸고 있으며, format-1 경로만 예외이다. 문서화된 잠금 계약을 준수하기 위해 format-1 qla_update_host_map() 호출 시 vport_slock을 유지한다. 루프 내에서 취한 vref_count가 vport를 유효하게 유지하므로, 이는 누락된 host_map 직렬화만 추가하는 것이다.
CVE-2026-89843
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Zero-init bsg stack buffers to avoid info leak Several bsg handlers stage their request/reply in an uninitialized 256-byte on-stack buffer (uint8_t bsg[DMA_POOL_SIZE]) and fill it via sg_copy_to_buffer(), which only copies as many bytes as the user-supplied request payload. When the request is shorter than the structure, the remainder of the buffer is left holding stale stack data. qla2x00_read_fru_status() and qla2x00_read_i2c() then copy the full structure back to the reply payload with sg_copy_from_buffer(), leaking the uninitialized stack bytes to user space. The write/update paths do not copy the buffer back, but can feed uninitialized fields to the device. Zero the stack buffer at declaration in all five handlers, mirroring the heap kzalloc() approach, so short requests can no longer expose stale memory.
CVE-2026-89842
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: scsi: qla2xxx: Skip NVMe LS reject IOCB when FW not started qla_nvme_xmt_ls_rsp() bails out to the out: label when firmware is not started (!ha->flags.fw_started), but the out: path unconditionally calls qla_nvme_ls_reject_iocb(), which ends in qla2x00_start_iocbs() and an unconditional doorbell write to the request queue in-pointer register. This rings the firmware doorbell and queues an IOCB that stopped or resetting firmware cannot consume, and touches MMIO during the reset/EEH window where fw_started is also clear. Only emit the LS reject IOCB (and ring the doorbell) when fw_started is set; otherwise just clean up and return. The post-allocation failure cases (SRB alloc / qla2x00_start_sp() failure) run with firmware started and still send the reject. Apply the same guard to the reject emission in qla2xxx_process_purls_pkt().
CVE-2026-89841
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: f2fs: redirty_blocks에서 고정된(folio) 페이지만 다시 더티 처리함 redirty_blocks()는 read_cache_folio()로 folio를 고정한 후, 같은 범위를 filemap_lock_folio()로 다시 순회하여 다시 더티 처리하고 획득한 참조를 해제한다. 커밋 5951fee46bef ("f2fs: Use a folio in redirty_blocks()")는 두 번째 순회를 do/while 루프로 변경했다. 만약 read_cache_folio()가 아무것도 고정하기 전에 실패하면, page_idx는 진행하지 않지만 정리 루프는 한 번 더 실행된다. 만약 readahead가 이미 실패한 folio를 페이지 캐시에 채워 넣었다면, 그 추가 반복에서 이를 찾아 folio_put_refs(folio, 2)가 참조를 하나 과도하게 해제한다. 이후 drop_caches나 reclaim에서 "BUG: Bad page state"를 보고할 수 있다. 성공적으로 고정된 범위만 다시 더티 처리한다.
CVE-2026-89840
2026년 9월 16일리눅스 커널에서 다음 취약점이 해결되었다: f2fs: MOVE_RANGE 대상 크기 검증 F2FS_IOC_MOVE_RANGE는 소스 범위는 검사하지만 i_size를 업데이트하기 전에 대상 끝은 검사하지 않는다. 소스 구멍이 이를 노출할 수 있다: __clone_blkaddrs()는 NULL_ADDR 항목을 건너뛰고 성공을 반환하므로 호출자는 여전히 검사되지 않은 pos_out + len으로 대상 inode를 확장할 수 있다. 대상 오버플로를 거부하고 대상 inode를 확장하기 전에 inode_newsize_ok()를 사용한다.
CVE-2026-89839
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: f2fs: use the mount idmap for the owner check in f2fs_xattr_advise_set() f2fs_xattr_advise_set() calls inode_owner_or_capable() with &nop_mnt_idmap before allowing the "system.advise" xattr to be set, instead of the idmap that the VFS passes to the ->set() handler. f2fs supports idmapped mounts, so on such a mount this checks the caller's fsuid against the unmapped on-disk owner rather than the mapped owner: the actual owner can be wrongly denied with -EPERM and an unrelated caller wrongly allowed. Pass the handler's idmap instead.
CVE-2026-89838
2026년 9월 16일리눅스 커널에서 다음 취약점이 해결되었다: f2fs: 복구 파일 이름 로깅을 저장된 길이로 제한 F2FS는 복구 파일 이름을 길이와 고정 크기 i_name 버퍼로 저장한다. 이 버퍼는 널 종료되지 않지만 recover_inode()와 recover_dentry()는 %s로 출력한다. 255바이트 파일 이름의 경우, 복구 로깅이 i_name을 넘어 다음 원시 inode 필드를 읽을 수 있다. i_namelen과 F2FS_NAME_LEN으로 제한된 정밀도로 이름을 출력한다.
CVE-2026-89837
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: f2fs: fix dentry folio leak in find_in_level find_in_level() gets a dentry folio with f2fs_find_data_folio() before calling find_in_block(). If find_in_block() returns an error, the function stores the error in res_folio and breaks out of the loop without dropping the dentry folio. This leaks the folio reference on the find_in_block() error path. Drop the dentry folio before returning the error to the caller.
CVE-2026-89836
번역 확인 필요2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: f2fs: 큰 folio 무효화 시 folio_nr_pages() 호출 후 발생하는 경쟁 조건 수정 우리의 v6.18 기반 Android 시스템은 [1]에 나타난 바와 같이 깨진 xarray 슬롯 상태와 관련된 라이브락과 잘못된 페이지 상태 문제를 지속적으로 겪고 있다. f2fs 내에서 큰 folio 작업을 조사한 결과 아래와 같은 경쟁 조건을 발견했고, 참조 카운트를 떨어뜨리고 folio_lock을 해제하기 전에 nr_pages를 가져오는 방식으로 이를 수정했다. f2fs_get_read_data_folio()는 페이지 캐시에서 큰 folio를 무효화할 때 folio_nr_pages() 호출 전에 f2fs_folio_put()을 호출한다. 이로 인해 folio가 잠금 해제되고 호출자 참조가 떨어지며, 이 사이에 동시 truncate 또는 folio 분할이 복합 folio를 축소하거나 무효화 범위가 계산되기 전에 folio를 해제할 수 있는 창이 생긴다. 축소된 범위는 mapping->i_pages에 분할된 하위 folio를 남기게 되고, 이는 이후 truncate 및 reclaim과 상호작용하여 (folio->mapping이 더 이상 잘라내는 매핑과 일치하지 않을 때) 오래된 xarray 항목과 잘못된 페이지 상태를 초래할 수 있다. [1] PID: 2594 TASK: ffffff8169b81580 CPU: 7 COMMAND: "Thread-3" #0 [ffffffc08ef2b8a0] xas_load at ffffffe52d1f42a4 #1 [ffffffc08ef2b900] find_get_entries at ffffffe52c185798 #2 [ffffffc08ef2bb60] truncate_inode_pages_range at ffffffe52c19e83c #3 [ffffffc08ef2bbc0] truncate_inode_pages_final at ffffffe52c19ec2c #4 [ffffffc08ef2bc20] f2fs_evict_inode at ffffffe52c4c8400 #5 [ffffffc08ef2bcc0] evict at ffffffe52c2de9f4 #6 [ffffffc08ef2bd00] iput at ffffffe52c2db1b4 #7 [ffffffc08ef2bd30] dentry_unlink_inode at ffffffe52c2d7204 #8 [ffffffc08ef2bd50] __dentry_kill at ffffffe52c2d3dcc #9 [ffffffc08ef2bd80] dput at ffffffe52c2d3c3c #10 [ffffffc08ef2bda0] __fput at ffffffe52c2b0a7c #11 [ffffffc08ef2bde0] ____fput at ffffffe52c2b1034 #12 [ffffffc08ef2bdf0] task_work_run at ffffffe52beea200 #13 [ffffffc08ef2be20] exit_to_user_mode_loop at ffffffe52bfbc17c #14 [ffffffc08ef2be80] el0_svc at ffffffe52d1f8e54 #15 [ffffffc08ef2beb0] el0t_64_sync_handler at ffffffe52d1f8d10