총 16,343건
CVE-2026-89474
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: bq256xx: drain usb_work before freeing the charger The USB-PHY notifier queues usb_work, whose handler calls power_supply_changed(bq->charger). The reset devm action only unregisters the notifier and was registered before the power supplies, so devm frees bq->charger on unwind before the action runs; a usb_work still queued can then dereference it. Register the reset action after the power supplies, so it unregisters the notifiers and drains usb_work before the supplies are released. Initialize usb_work and obtain the PHY references before registering the notifiers, so the worker cannot run before the supplies exist. Found by static analysis.
CVE-2026-89473
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: bq25890: Fix power_supply reference leak bq25890_fw_probe() acquires a reference to a secondary charger using power_supply_get_by_name(), but the reference is not released on later probe failures or on driver detach. In particular, failures after bq25890_fw_probe() returns successfully, such as a failure in bq25890_hw_init(), also leak the reference. Register a device-managed cleanup action immediately after acquiring the secondary charger. This releases the reference on all subsequent probe failures and on driver detach. Found by code review.
CVE-2026-89472
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: power: supply: charger-manager: sysfs를 노출하기 전에 레귤레이터를 등록함 charger_manager_remove()와 err_reg_extcon 프로브 오류 경로는 각 충전기 레귤레이터를 power_supply sysfs 항목(power_supply_unregister())을 해제하기 전에 regulator_put()으로 해제한다. charger_manager_remove()는 또한 regulator_put() 루프 후에 try_charger_enable(cm, false)를 호출한다. regulator_put()과 power_supply_unregister() 사이에 충전기의 externally_control sysfs 속성에 대한 동시 쓰기가 발생하면 charger_externally_control_store()가 실행되고 try_charger_enable()을 호출할 수 있는데, 충전이 활성화된 경우 이미 해제된 consumer 핸들을 역참조한다. 충전이 활성화된 경우 .remove() 내의 try_charger_enable(cm, false)도 해제된 핸들을 직접 역참조한다. 두 경우 모두 해제 후 사용(use-after-free) 취약점이 발생한다. 대칭적으로, 프로브는 레귤레이터를 획득하기 전에(sysfs 항목 등록인 power_supply_register) sysfs 항목을 등록하므로(regulator_get은 charger_manager_register_extcon 내부), 사용자 공간에서 레귤레이터가 준비되기 전에 externally_control에 접근할 수 있다. charger_manager_register_extcon()을 동기/비동기 경계에서 분리하였다: charger_manager_get_regulators()(regulator_get만 수행, 비동기 프로듀서 없음)가 이제 power_supply_register() 전에 실행되어 레귤레이터가 준비되기 전에 sysfs가 활성화되지 않으며, charger_manager_register_extcon()은 power_supply_register() 이후에 extcon 알림자/작업 설정만 유지하여 power_supply_register() 실패가 extcon 설정에 영향을 미치지 않도록 한다. 이는 이전 프로브 오류 경로에서 비동기 프로듀서를 도입하지 않고 sysfs 설정/해제 순서를 대칭적으로 유지한다. 두 해제 경로 모두에서 power_supply_unregister()와 try_charger_enable(cm, false)를 regulator_put() 루프 앞쪽으로 이동하고, err_reg_extcon을 조정하였다(power_supply_unregister() 후 err_regulator로 넘어가 regulator_put() 수행; get_regulators는 자체 실패 시 롤백). 이 변경은 동일 핸들에 대한 별도의 extcon 알림자 기반 역참조 문제를 해결하지 않으며, 이는 별도의 동기화 설계가 필요하다. 내부 정적 분석 도구에 의해 발견됨.
CVE-2026-89471
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: power: supply: cros_usbpd-charger: EC가 보고한 포트 수 제한 cros_usbpd_charger_probe() 함수는 EC에서 두 개의 포트 수를 읽고, 그중 하나인 num_charger_ports를 고정 크기 배열을 채우는 반복문의 경계로 사용한다: struct port_data *ports[EC_USB_PD_MAX_PORTS]; /* 8개 항목 */ ... for (i = 0; i < charger->num_charger_ports; i++) charger->ports[charger->num_registered_psy++] = port; num_usbpd_ports(EC_CMD_USB_PD_PORTS에서)와 num_charger_ports(EC_CMD_CHARGE_PORT_COUNT에서)는 모두 EC가 보고하는 u8 값이다. 유일한 검증은 두 EC 보고 값 간의 일관성 검사이다: if (num_charger_ports < num_usbpd_ports || num_charger_ports > num_usbpd_ports + 1) return -EPROTO; ports[] 배열 크기인 EC_USB_PD_MAX_PORTS와 두 값 중 어느 것도 비교하지 않는다. 오작동하거나 악의적이거나 손상된 EC가 num_usbpd_ports == num_charger_ports == N (N > 8, 예: 255)으로 보고하면 이 검사를 통과한다. 그 후 반복문은 devm_kzalloc()로 할당된 charger_data 내 8개 항목 ports[] 배열에 N개의 포인터를 써서 최대 255 - 8 = 247개 항목(~1976 바이트)까지 오버플로를 발생시킨다: 슬랩 범위 밖 쓰기 취약점이다. ports[] 배열이 담을 수 있는 포트 수보다 큰 값은 거부하도록 수정되었다.
CVE-2026-89470
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: power: supply: cros_usbpd: 포트 수를 EC_USB_PD_MAX_PORTS로 제한 현재 cros_usbpd-charger 드라이버 프로브는 임베디드 컨트롤러가 반환하는 원시 충전기 포트 수를 기준으로 반복한다. 유일한 검사는 임베디드 컨트롤러가 정의하는 USB PD 포트 수에 대한 것이다. 악의적인 임베디드 컨트롤러가 부정확한 포트 수(최대 255)를 반환할 경우 범위 밖 쓰기(out-of-bounds write) 및 이후 메모리 손상이 발생할 수 있다. cros_usbpd-charger의 헬퍼 함수를 업데이트하여 포트 수를 EC_USB_PD_MAX_PORTS로 제한한다.
CVE-2026-89469
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: power: supply: lp8727: lp8727_release_irq()의 해제 후 사용(use-after-free) 수정 스레드 IRQ 핸들러인 lp8727_isr_func()는 schedule_delayed_work()를 통해 pchg->work를 활성화하는 유일한 호출자이다. lp8727_release_irq()는 현재 IRQ를 해제하기 전에 작업을 취소하므로, 그 사이에 전달된 IRQ가 스레드 핸들러를 통해 작업을 다시 활성화할 수 있다. .remove가 반환된 후 devm 계층이 pchg를 해제하는 동안 lp8727_delayed_func()가 여전히 실행되어 이를 역참조할 수 있다. 스레드 핸들러가 조용해지고 더 이상 작업을 큐에 넣을 수 없도록 먼저 IRQ를 해제한 다음, 지연 작업을 취소하여 마지막 작업을 소진한다. 이 문제는 내부 정적 분석 도구에 의해 발견되었다.
CVE-2026-89468
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: lp8788-charger: fix use-after-free on remove lp8788_charger_remove() flushes charger_work before unregistering the IRQs. An IRQ thread can queue charger_work after flush_work() has returned. The work can then run after devres frees pchg and dereference it in lp8788_charger_event(). Unregister the IRQs first. free_irq() waits for any running threaded handler, so no handler can queue more work afterwards. Then use cancel_work_sync() to cancel pending work or wait for running work to finish. This issue was found by an in-house static analysis tool.
CVE-2026-89467
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: qcom_battmgr: fix use-after-free qcom_battmgr_pdr_notify() queues enable_work when the PMIC GLINK service comes up, and the worker recovers battmgr through container_of() to issue firmware requests. The PMIC GLINK client stays on the client list until its devres release action runs, so a PDR notification can keep queueing the work, and a pending or running worker can access battmgr after devres frees it. Make enable_work device-managed with devm_work_autocancel(), registered before the PMIC GLINK client is allocated. The devres cleanup then releases the client first, so no further notification can queue the work, and cancels the work before battmgr is freed. This issue was found by an in-house static analysis tool.
CVE-2026-89466
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: power: supply: qcom_battmgr: 펌웨어에서 문자열 종료 처리 qcom_battmgr_sc8280xp_strcpy() 함수는 펌웨어가 Pascal 스타일 문자열을 보낼 때 이를 처리한다. 그렇지 않으면 BATTMGR_STRING_LEN 바이트 전체를 복사하여 목적지 문자열에 종료 문자가 없게 된다. 이 목적지들은 model_number, serial_number, oem_info로 각각 BATTMGR_STRING_LEN 크기이며 서로 인접해 선언되어 있다. 이들은 val->strval로 사용자 공간에 전달되며, power_supply_format_property()가 "%s" 형식으로 출력한다. 따라서 펌웨어 문자열이 필드를 가득 채우면 읽기가 다음 멤버들까지 넘어가게 된다. 복사 시 항상 종료 문자가 붙도록 strscpy()를 사용하도록 변경했으며, 이는 SM8350 경로가 동일 필드에 대해 이미 수행하고 있는 방식이다.
CVE-2026-89465
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: power: supply: rt9455: 종료 전에 지연 작업(quiesce delayed work) 처리 스레드 IRQ 핸들러는 pwr_rdy_work, max_charging_time_work 및 batt_presence_work를 큐에 넣을 수 있다. pwr_rdy_work와 batt_presence_work는 max_charging_time_work를 큐에 넣을 수 있으며, batt_presence_work는 자신을 다시 큐에 넣을 수도 있다. rt9455_remove()는 batt_presence_work보다 먼저 max_charging_time_work를 취소한다. 따라서 후자는 이미 취소된 후에도 max_charging_time_work를 큐에 넣을 수 있다: rt9455_remove() workqueue pwr_rdy_work 취소 max_charging_time_work 취소 batt_presence_work가 큐에 넣음 max_charging_time_work batt_presence_work 취소 반환 devres가 rt9455_info 해제 max_charging_time_work가 rt9455_info를 역참조 IRQ는 devres 정리까지 등록된 상태로 남아 있으며, 취소 호출 이후에도 더 많은 작업을 큐에 넣을 수 있다. rt9455_hw_init()가 IRQ 요청 후 실패하면, 이미 큐에 들어갔을 수 있는 작업을 취소하지 않고 probe가 반환된다. 대기 중인 콜백이 해제된 rt9455_info에 접근할 수 있다. devm_power_supply_register() 직후 devm_add_action_or_reset()를 통해 rt9455_cancel_all_delayed_works()를 등록한다. devres는 관리되는 IRQ가 해제된 후, rt9455_info가 해제되기 전에 역순으로 이 동작을 호출하여, rt9455_remove()와 probe 오류 경로 모두에서 지연 작업이 소진되도록 한다. pwr_rdy_work와 batt_presence_work가 max_charging_time_work를 큐에 넣을 수 있으므로, max_charging_time_work보다 먼저 이 둘을 취소한다. 이 문제는 내부 정적 분석 도구에 의해 발견되었다.
CVE-2026-89464
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: twl4030_charger: cancel workers via devm bci is devm-allocated. Two workers (bci->work and bci->current_worker) dereference it. twl4030_bci_remove() disables charging and masks interrupts. It cancels neither worker. A worker pending at remove() can run after devm frees bci. The USB transceiver comes from devm_usb_get_phy_by_node(). devm unregisters its notifier only after remove() returns. A cancel_work_sync() in remove() can then race a notifier reschedule. devm_work_autocancel() and devm_delayed_work_autocancel() avoid that. They cancel the workers during devm release, before bci is freed. The current_worker is registered first, since devm will cancel in reverse order and bci->work can reschedule current_worker. [Move comment about order into the commit message]
CVE-2026-89463
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: ucs1002: fix use-after-free on remove ucs1002 has no remove callback, so unbind runs entirely through devm. The alert IRQ handler queues the health_poll delayed work, and the work reschedules itself while the chip reports a bad-health condition. devm frees the alert IRQ, which only synchronizes the handler; it does not cancel the delayed work, which can then run after devm frees the driver data and dereference it. Register health_poll with devm_delayed_work_autocancel() before the alert IRQ is requested. devm then frees the IRQ before cancelling the work, so the handler can no longer queue it and the work is cancelled before the driver data is freed. This issue was found by an in-house static analysis tool.
CVE-2026-89462
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: max17040: propagate register read errors max17040_get_vcell() and max17040_get_soc() ignore errors returned by regmap_read(). When an I2C transfer fails, the uninitialized register value is converted and reported to userspace as a valid voltage or state of charge. The polling worker can also replace the cached state of charge with the bogus value and emit a spurious change event. Propagate read errors through the power supply get_property callback and keep the last valid cached state of charge when polling fails.
CVE-2026-89461
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: power: supply: max17040: synchronize work cancellation on suspend max17040_work() requeues itself after every poll. cancel_delayed_work() only cancels a pending instance and does not wait for a callback that is already running. If system suspend races with the polling callback, the callback can continue accessing the fuel gauge and requeue itself after the suspend callback returns. Use cancel_delayed_work_sync() to ensure polling is quiesced before suspend completes.
CVE-2026-89460
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: s390/cpum_cf: Handle CPU hotplug via prepare/dead callbacks The command 'perf stat -e cycles -- <command>' crashes the kernel when CPUs are hotplug added during that run. Root cause is the allocation of struct cpu_cf_events at first event initialization. The allocation is dynamic and the first event that has task context creates such a structure for each online CPU. This is not sufficient. CPUs may be offline during event creation and can be set online during the perf run time. For example commands # echo 0 > /sys/devices/system/cpu/cpu1/online # perf stat -e cycles -i -- stress-ng -t10s --matrix X # sleep 1 # echo 1 > /sys/devices/system/cpu/cpu1/online create an event for CPUs 0,2-X. Since the events are created with task-context, the scheduler will eventually schedule the program on CPU1. This CPU has not created and initialized any per CPU event infrastructure as that CPU was not online at the time of the perf invocation. Thus when the scheduler runs stress-ng on CPU1, the function cpumf_pmu_add() refers to a NULL pointer: struct cpu_cf_events *cpuhw = this_cpu_cfhw(); This function call is invoked after the task stress-ng has been made runnable on CPU1. And this_cpu_cfhw() returns NULL. The result is a panic: Unable to handle kernel pointer dereference in virtual kernel address space Failing address: 0000000000000000 TEID: 0000000000000483 .... Krnl PSW : 0404d00180000000 000003ef8291fd0c (cpumf_pmu_add+0x3c/0x80) .... Call Trace: [<000003ef8291fd0c>] cpumf_pmu_add+0x3c/0x80 [<000003ef82bb5e3e>] event_sched_in+0xae/0x190 [<000003ef82bb60d6>] merge_sched_in+0x1b6/0x390 [<000003ef82bb65b8>] visit_groups_merge.constprop.0.isra.0+0x308/0x5b0 [<000003ef82bb689a>] pmu_groups_sched_in+0x3a/0x50 [<000003ef82bb6a30>] ctx_sched_in+0x180/0x260 [<000003ef82bb780c>] perf_event_context_sched_in+0x11c/0x2d0 [<000003ef82bb79ee>] __perf_event_task_sched_in+0x2e/0xc0 [<000003ef82994834>] finish_task_switch.isra.0+0x1a4/0x250 .... Last Breaking-Event-Address: [<000003ef8291f1d8>] this_cpu_cfhw+0x38/0x40 The issue arises only in per-task context when the CPUMF facility is used and the scheduler picks a random CPU for such a process to run on. The scheduler enables the CPUMF infrastructure via PMU callback functions pmu::add() and pmu::del(). Introduce a CPU hotplug prepare/dead callback pair which creates and removes the per CPU counter data while the CPU is offline. Count the users which track every CPU (cpu == -1), that is perf_event_open() events with task context and /dev/hwctr device sessions, in the new counter cpu_cf_root::tskcnt, protected by pmc_reserve_mutex. This ensures the infrastructure is available when new CPU is selected to run the per-task context process. In cpum_cf_free_root() and cpum_cf_free_cpu() ensure the reference pointer to data structures is set to NULL before the data is freed to prevent interrupt handlers to access stale data. [[email protected]: change commit message]
CVE-2026-89459
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: s390/percpu: 이전 binutils와 함께 MVIY_PERCPU() 수정 커밋 a737737cdb9c ("s390/percpu: 더 효율적인 this_cpu 연산을 위한 인프라")는 이미 C 문자열 리터럴인 인수를 문자열화하는 MVIY_PERCPU()를 도입했다. 이는 공백으로 구분된 인용된 인수를 가진 어셈블러 매크로 호출을 생성한다: GEN_MVIY "459712" "%r3" binutils 2.39 이전 버전의 GNU as는 입력 정리 과정에서 인용된 매크로 인수 사이의 구분 공백을 제거한다. 따라서 호출을 단일 인수로 해석하고 반복 경고를 출력한다: Warning: missing closing `"' GEN_MVIY의 .ifc는 절대 일치하지 않으며 GNU as는 mviy 명령어를 출력하지 않고 정상 종료한다. 결과적으로 중단된 per-CPU 시퀀스가 lowcore에 표시되지 않고 예외 복귀 경로가 마이그레이션 후 per-CPU 주소 레지스터를 복구할 수 없다. 모든 MVIY_PERCPU() 호출자는 C 문자열 리터럴을 전달한다. 이를 직접 사용하고 어셈블러 매크로 인수를 명시적 쉼표로 구분한다. 결과 호출은 다음과 같다: GEN_MVIY 459712, %r3 이 형식은 GNU as와 LLVM 통합 어셈블러 모두에 대해 모호하지 않다. 이 동작은 binutils 2.39부터 GNU as에서 수정되었으나 Linux는 binutils 2.30을 지원한다.
CVE-2026-89458
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: s390/dasd: Do not complete a failed ESE read as successful dasd_int_handler() completes an NRF read of an unallocated ESE track by calling ese_read() and unconditionally marking the request DASD_CQR_SUCCESS. dasd_eckd_ese_read() can return an error before it has zeroed the destination buffer: a failed sense-data parse or a current track outside the requested range both return early, leaving the destination pages untouched. The request is still completed successfully, so the block layer is handed stale / uninitialized memory instead of zeros. Check the ese_read() return value and fail the request through the normal error path instead of forcing DASD_CQR_SUCCESS.
CVE-2026-89457
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: s390/dasd: Guard sysfs discipline callbacks against unallocated private data Several sysfs show/store handlers call a discipline callback that dereferences device->private, either directly or through the DASD_DEFINE_ATTR() macro. During dasd_generic_set_online() the discipline is assigned before check_device() allocates device->private, so an unprivileged read of one of these world-readable attributes in that window dereferences a NULL pointer and panics. Guard the dereference inside each callback that actually touches device->private.
CVE-2026-89456
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: s390/dasd: ERP 복구 과정에서 부분 완료 길이 전파 dasd_default_erp_postaction()은 완료된 ERP 요청에서 타이밍과 장치 상태를 원래 요청으로 복사하지만 proc_bytes는 누락한다. 부분적으로 완료된 요청, 즉 아직 할당되지 않은 트랙에 대한 ESE 읽기가 요청한 바이트보다 적은 바이트를 반환하고 ERP 체인을 통해 복구된 경우 부분 완료 길이를 잃는다. __dasd_cleanup_cqr()는 proc_bytes가 0임을 확인하고 나머지를 재큐잉하지 않고 전체 요청을 완료하여 읽히지 않은 부분에 대해 0으로 초기화된 데이터를 조용히 반환한다. 다른 요청별 상태처럼 proc_bytes를 원래 요청으로 전달하도록 수정함.
CVE-2026-89455
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: PCI: plda: Fix use-after-free of event IRQs during teardown plda_pcie_irq_domain_deinit() removes pcie->event_domain via irq_domain_remove(), but the per-event IRQs mapped from that domain are requested with devm_request_irq() in plda_init_interrupts(). The actual free_irq() for a devm-managed IRQ is deferred by devres until after the calling probe()/remove() function returns. This means irq_domain_remove() can free the domain's internal data before the deferred free_irq() for IRQs still mapped into it has run. When devres later processes that deferred cleanup, it can end up dereferencing the already-freed domain. Free each event IRQ explicitly with devm_free_irq() before removing the domain. This triggers the free immediately and removes the IRQ from the devres tracking list, so devres will not attempt to free it a second time later. Also dispose of the event, INTx, and MSI IRQ mappings with irq_dispose_mapping() before their owning domains are removed. Finally, guard the calls to irq_set_chained_handler_and_data() for pcie->irq, pcie->msi_irq, and pcie->intx_irq so they only run when those fields hold a valid (>0) IRQ number. This is a pre-existing issue, flagged by automated review during work on an earlier, unrelated patch to this driver. Build-tested and boot-tested on StarFive VisionFive v1.2A board