In the Linux kernel, the following vulnerability has been resolved: ASoC: audio-graph-card2: Fix use-after-free in audio_graph2_link_c2c() of_graph_get_next_port() consumes the reference of its prev argument. port0 is only borrowed from the caller's iterator, so the call drops a reference the function does not own, and port0 is dereferenced again afterwards. Pass an extra reference, as graph_count_c2c() does, so the reference the callee consumes is the one taken here.
https://git.kernel.org/stable/c/fd0dd0ee82ef62b8b4bda1ffceb361946f403404
https://git.kernel.org/stable/c/85db2c35fd93bc6604e4d7abe4701d6587bc15a3
https://git.kernel.org/stable/c/5ea495bccfd746b063bc6702064f167467717b41