Messages in this thread | | | Subject | Re: [PATCH v2] platform/chrome: cros_ec_typec: zero out stale pointers | From | patchwork-bot+chrome-platform@kernel ... | Date | Thu, 08 Dec 2022 02:00:16 +0000 |
| |
Hello:
This patch was applied to chrome-platform/linux.git (for-next) by Tzung-Bi Shih <tzungbi@kernel.org>:
On Wed, 7 Dec 2022 09:39:40 +0000 you wrote: > `cros_typec_get_switch_handles` allocates four pointers when obtaining > type-c switch handles. These pointers are all freed if failing to obtain > any of them; therefore, pointers in `port` become stale. The stale > pointers eventually cause use-after-free or double free in later code > paths. Zeroing out all pointer fields after freeing to eliminate these > stale pointers. > > [...]
Here is the summary with links: - [v2] platform/chrome: cros_ec_typec: zero out stale pointers https://git.kernel.org/chrome-platform/c/9a8aadcf0b45
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |