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 14EF82BE02D for ; Wed, 24 Dec 2025 13:06:45 +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=1766581606; cv=none; b=STr1e9aebZFGD3ZfjeSkMN7hsPcZMKH6I57hZuMxEE1CPPZbmrhCHUZgFDKTAh+86JJ4Y9iPtTvPnSoQqAd7lESzOyZNIziWNe4zKlfCtDwH7+kkogMoWMmiNivy1YuIh0OFguUtJapEcD5KvtQl/MEzZtJH75AiKI9DX/dgtHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581606; c=relaxed/simple; bh=MY0GGjyPz4v51DQQndxzf0/NIE0l1KCQdbTXD3x7d3Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SElFjyZh7nOJb5XUV5H8N0ulGytw92xF5VPWgzV+AEzZTi9laLnZnHU68QAld28gLkfaLO+ZZpALuD9IQlPzCHT/kK2ZbX9JvPBpBwA25oesEQWbzsZpHeLETM53a7lDOwdXBqCeEGdA8yGbegmPiIMz6KMr9t4d/7S2rh+TBuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IdICiQyN; 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="IdICiQyN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50C95C4CEFB; Wed, 24 Dec 2025 13:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581605; bh=MY0GGjyPz4v51DQQndxzf0/NIE0l1KCQdbTXD3x7d3Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=IdICiQyN2Um2fvknajvkiLklD5K8kMRCw+eu+mAnRQk9SRYMbn3uJP8nMJAtN/JVf yRidasnNye1s+tnuOBT40lRvgHkVq+wFA8ma2h2W8rc048GhIaIFRnUSrGizorP3mX A52AYF/DXWAA9Lv0yay5h54xE/f26OdmyjkwSF/Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50748: ipc: mqueue: fix possible memory leak in init_mqueue_fs() Date: Wed, 24 Dec 2025 14:05:59 +0100 Message-ID: <2025122451-CVE-2022-50748-0136@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2215; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bFbDmWmqDxkZFwOIy9dDLPIwi0vo4oVlZJSZ5qlWPq0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT/WlYj9EL1Zd0JMaZpX5LNX1+Zyq6UbhRxd/e+UoF tmw5PP0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI12SG+U6pf3cJekxmLVl0 fm35RBM5TrMt3AxzOGabOuy589Kw81m/7+5Vxou7lyY9AAA= 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: ipc: mqueue: fix possible memory leak in init_mqueue_fs() commit db7cfc380900 ("ipc: Free mq_sysctls if ipc namespace creation failed") Here's a similar memory leak to the one fixed by the patch above. retire_mq_sysctls need to be called when init_mqueue_fs fails after setup_mq_sysctls. The Linux kernel CVE team has assigned CVE-2022-50748 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit dc55e35f9e810f23dd69cfdc91a3d636023f57a2 and fixed in 5.19.17 with commit a1f321051e0dcf2415fb94f81fdc5044cad4c1d6 Issue introduced in 5.19 with commit dc55e35f9e810f23dd69cfdc91a3d636023f57a2 and fixed in 6.0.3 with commit 55b3709c6d68e32cd3fdd2a630b1f4c97d51b17c Issue introduced in 5.19 with commit dc55e35f9e810f23dd69cfdc91a3d636023f57a2 and fixed in 6.1 with commit c579d60f0d0cd87552f64fdebe68b5d941d20309 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-50748 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: ipc/mqueue.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/a1f321051e0dcf2415fb94f81fdc5044cad4c1d6 https://git.kernel.org/stable/c/55b3709c6d68e32cd3fdd2a630b1f4c97d51b17c https://git.kernel.org/stable/c/c579d60f0d0cd87552f64fdebe68b5d941d20309