Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B414170A11 for ; Wed, 18 Jun 2025 11:08:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244898; cv=none; b=UEyGgitUUE/8JGDMt4X2SFAy86u2xklRVMwGC8yIbIw+mJzlO5Cn8EnFk0FQhwfSPKCqUJkB5xDqSn8BwmaTzgF2iMD9O6JFwfGJlNOvcgDfGOpPhbDoBRbyNl4y/LNqQYICSMi7Gc1UEL5UuHulhH5tFmVXGpuUJXVs9tscG7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244898; c=relaxed/simple; bh=hpWgMrjxScysbX812XFuyBA8iuYnF95LoRNVEJm2xH0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FRFP0eLH93LUNTYRDKGON/sMvOhbw8Uze06+l6nQp07wnWoeIkDc7Y+910GNjoT6cA+wr9B2QpZ2+NrOmONNk6ebHX/mum/R2qLvL15P82NzBSG59blUaBmtXqXF8UoM0nQ36zJUwQXxvQ9oMMwHGrxeljyRsfVmfoSK9BSgJAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NsV3BTpd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NsV3BTpd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB589C4CEE7; Wed, 18 Jun 2025 11:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244898; bh=hpWgMrjxScysbX812XFuyBA8iuYnF95LoRNVEJm2xH0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NsV3BTpdvqawWyp+4imXGwxXsl+/mgLXtQ1cbMdtyjNvn/eVXnyT08VERoypouumK EDUlDfhEaprtStOfpnJSe6keNYTiUd1HCqz8Mcs9q7No47Jy0QrtcWwgADRr28mM/w +CrGc9h4U12GZdofvnJX4D8/l5Uri6mmqzBIhw/w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50038: drm/meson: Fix refcount bugs in meson_vpu_has_available_connectors() Date: Wed, 18 Jun 2025 13:01:43 +0200 Message-ID: <2025061841-CVE-2022-50038-970a@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3205; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5MBvhydZNfTNcpokNpkpEmWy31RhJ3JHqVh2BVZojsE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcyL9fsu9WLuRNed+v+b/XzLc6qviO/r4cnhvq8tt3 yfudb+1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaytphhnuoHHutU29JPC5Im 8tX8exp15gy/BMM8862fnTlaD9uFrHHz3RgRlDNjldtHAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/meson: Fix refcount bugs in meson_vpu_has_available_connectors() In this function, there are two refcount leak bugs: (1) when breaking out of for_each_endpoint_of_node(), we need call the of_node_put() for the 'ep'; (2) we should call of_node_put() for the reference returned by of_graph_get_remote_port() when it is not used anymore. The Linux kernel CVE team has assigned CVE-2022-50038 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 4.14.291 with commit 6a758f0ba11699837af9e1a0f7cbac6ef765a23e Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 4.19.256 with commit fc1fc2abfcb9235d0ece9a4d858426fb617cfa66 Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 5.4.211 with commit d58ef256781398ad115aef44de0a02ad27ea6c3a Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 5.10.138 with commit 3aa710e96747c8b4e52ba12ffe09edcb2755897c Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 5.15.63 with commit fe71d84c1a6c0d54657431e8eeaefc9d24895304 Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 5.19.4 with commit 8dec38e19f6928235d4009ce55f7add8af34e5c7 Issue introduced in 4.10 with commit bbbe775ec5b5dace43a35886da9924837da09ddd and fixed in 6.0 with commit 91b3c8dbe898df158fd2a84675f3a284ff6666f7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50038 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/meson/meson_drv.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/6a758f0ba11699837af9e1a0f7cbac6ef765a23e https://git.kernel.org/stable/c/fc1fc2abfcb9235d0ece9a4d858426fb617cfa66 https://git.kernel.org/stable/c/d58ef256781398ad115aef44de0a02ad27ea6c3a https://git.kernel.org/stable/c/3aa710e96747c8b4e52ba12ffe09edcb2755897c https://git.kernel.org/stable/c/fe71d84c1a6c0d54657431e8eeaefc9d24895304 https://git.kernel.org/stable/c/8dec38e19f6928235d4009ce55f7add8af34e5c7 https://git.kernel.org/stable/c/91b3c8dbe898df158fd2a84675f3a284ff6666f7