CVE-2026-98677 in Linux信息

摘要

由 VulDB • 2026-10-18

在 Linux 内核中,已修复以下漏洞:

iio: adc: ad_sigma_delta: 修复解绑时的 use-after-free(释放后使用)问题

ad_sd_buffer_postenable() 在运行时通过 devm_krealloc() 分配 sigma_delta->samples_buf,因此其 devres 条目位于驱动程序所有探测时条目的后面。devm 资源按与分配相反的顺序释放,这意味着在 iio_device_unregister() 禁用缓冲区并分离触发器 pollfunc 之前,解绑操作会先释放 samples_buf。此时数据就绪中断(IRQ)仍处于启用状态,因此 ad_sd_trigger_handler() 仍可能运行并将传入的样本 memcpy() 到已释放的 samples_buf 中。

通过在 devm_ad_sd_setup_buffer_and_trigger() 中预先分配缓冲区来解决此问题,该操作在设置触发器缓冲区和 IRQ 之前进行,从而确保仅在 iio_device_unregister() 通过 free_irq() 排空触发器处理程序之后才释放它。将其大小设置为所有序列器槽位均处于活动状态的最坏情况;ad_sd_validate_scan_mask() 已将活跃通道数量限制为 num_slots。

此问题由内部静态分析工具发现。

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

来源

Do you need the next level of professionalism?

Upgrade your account now!