HomeFreeBSD

scmi: Avoid a use-after-free

Description

scmi: Avoid a use-after-free

Use LIST_FOREACH_SAFE to avoid a use-after-free in scmi_reqs_pool_free.
The next pointer will be invalid after the call to free meaning
LIST_FOREACH will dereference a freed struct to move to the next item.

Reviewed by: emaste
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D50753

Details

Provenance
andrewAuthored on Jun 9 2025, 10:30 PM
Reviewer
emaste
Differential Revision
D50753: scmi: Avoid a use-after-free
Parents
rG1254c42c68b6: fwget: fix pci id 15d8 firmware
Branches
Unknown
Tags
Unknown