跳转到帖子

Red Hat: CVE-2023-52749: kernel: spi: Fix null dereference on suspend (Multiple Advisories)

recommended_posts

发布于
  • Members

Red Hat: CVE-2023-52749: kernel: spi: Fix null dereference on suspend (Multiple Advisories)

Severity
4
CVSS
(AV:L/AC:L/Au:M/C:N/I:N/A:C)
Published
05/21/2024
Created
12/06/2024
Added
12/05/2024
Modified
02/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved: spi: Fix null dereference on suspend A race condition exists where a synchronous (noqueue) transfer can be active during a system suspend. This can cause a null pointer dereference exception to occur when the system resumes. Example order of events leading to the exception: 1. spi_sync() calls __spi_transfer_message_noqueue() which sets ctlr->cur_msg 2. Spi transfer begins via spi_transfer_one_message() 3. System is suspended interrupting the transfer context 4. System is resumed 6. spi_controller_resume() calls spi_start_queue() which resets cur_msg to NULL 7. Spi transfer context resumes and spi_finalize_current_message() is called which dereferences cur_msg (which is now NULL) Wait for synchronous transfers to complete before suspending by acquiring the bus mutex and setting/checking a suspend flag.

Solution(s)

  • redhat-upgrade-kernel
  • redhat-upgrade-kernel-rt

References

  • CVE-2023-52749
  • RHSA-2024:10772
  • RHSA-2024:10773
  • RHSA-2024:9315
  • RHSA-2024:9546
  • 查看数 698
  • 已创建
  • 最后回复