In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Avoid closing unowned DDC pins [WHY] dal_ddc_open() cleans up pins it acquires on later failures. If the data-pin open fails, this attempt acquired nothing. If opening the clock pin or configuring fails, dal_ddc_open() closes the pins it opened. An extra dal_ddc_close() is unnecessary and unsafe: GPIO_RESULT_ALREADY_OPENED can mean AUX owns the existing handles, and closing them here would disrupt AUX. [HOW] Remove the extra dal_ddc_close() from the failed-open path. (cherry picked from commit 175ae7772b68757b4932f34ff862923cab7abe21)
https://git.kernel.org/stable/c/e7ba638b8116cb5f1a5690f543052371215f1626
https://git.kernel.org/stable/c/5605c171019d14a12327bf41dee7d0851ce2036c
https://git.kernel.org/stable/c/4c4688f7d1c0ea08ea2b746561505bb9e487644e
https://git.kernel.org/stable/c/41b495570564857a74626a527efef541e0af5fa1