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 110DC824A3 for ; Tue, 16 Sep 2025 08:12:50 +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=1758010371; cv=none; b=RdA/VOo1is253/n0MB/8CzqyjCxdhCb1DiZvAl7gHFJWW0zdEj5jZ7TLHVxtnDWHPmOo6NGaLYsYTLLkzpN3dMvyDYZCILr3p2ltKWSKpHYTD1boV8dF43r+X9/cVkRSMPkta6P5+H1KtZPUuQLmVwARv5Qrs4ffZ8wkYTVL1uU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010371; c=relaxed/simple; bh=sFssQ9bJ1RCI7MA3WGr5SkVe1mcjeX8jB0vURWck91I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nr1Z3ocxvu4BFFF7Iw42uyeTGLOAFVTqokwitBvC2LNR6wuK8dDNWEORtp0BfyQka+HWxXi7YJyX0CL8ktFlRm+mn/S2NleUbBfVqSZimcHQ91t4tIUbNJpPsJfBfLhGtwLPsaaOTiLQlaXolrwz4Sh90Bi4lcs+c/wupQg9Rmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eWcc2iPG; 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="eWcc2iPG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30FC0C4CEEB; Tue, 16 Sep 2025 08:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010370; bh=sFssQ9bJ1RCI7MA3WGr5SkVe1mcjeX8jB0vURWck91I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eWcc2iPG4qktkQ0nPXLdVgQ9oktw3Oe9PGnVLFNPQE0VRjRT9UHxCB6JHmrndQPB4 NJLzd2aqNm1VpId8eNqddgzf0yQmhVklIHA4txIYKAU9rv8AQ6U5hMP+iZQdv/5sjZ dE45gctHVB4rWCAAW/r7KuY2EWHETltTi2orjbjI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53278: ubifs: Fix memory leak in ubifs_sysfs_init() Date: Tue, 16 Sep 2025 10:11:28 +0200 Message-ID: <2025091623-CVE-2023-53278-9dfc@gregkh> X-Mailer: git-send-email 2.51.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=3108; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=47QZJp5K77P/vRg20Ed2poXu2Uese3CDvSvAH4LH15w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpddMlm2ZekyT680ao0XVm2XzzaZ+k3lfIVs+aWkCQ 9w8Nl2djhgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI4haGBavZ1ygy1Gh9uvFF Y++isqu3L3hN5WGYHnr7yyuH3EynRbd7p2yNd7dt/7oKAA== 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: ubifs: Fix memory leak in ubifs_sysfs_init() When insmod ubifs.ko, a kmemleak reported as below: unreferenced object 0xffff88817fb1a780 (size 8): comm "insmod", pid 25265, jiffies 4295239702 (age 100.130s) hex dump (first 8 bytes): 75 62 69 66 73 00 ff ff ubifs... backtrace: [] slab_post_alloc_hook+0x9c/0x3c0 [] __kmalloc_track_caller+0x183/0x410 [] kstrdup+0x3a/0x80 [] kstrdup_const+0x66/0x80 [] kvasprintf_const+0x155/0x190 [] kobject_set_name_vargs+0x5b/0x150 [] kobject_set_name+0xbb/0xf0 [] do_one_initcall+0x14c/0x5a0 [] do_init_module+0x1f0/0x660 [] load_module+0x6d7e/0x7590 [] __do_sys_finit_module+0x19f/0x230 [] __x64_sys_finit_module+0x73/0xb0 [] do_syscall_64+0x35/0x80 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd When kset_register() failed, we should call kset_put to cleanup it. The Linux kernel CVE team has assigned CVE-2023-53278 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 2e3cbf425804fb44a005e252f88f93dff108c911 and fixed in 6.1.18 with commit 1c5fdf2d4647219d2267ccb08c7f2c7095bf3450 Issue introduced in 5.17 with commit 2e3cbf425804fb44a005e252f88f93dff108c911 and fixed in 6.2.5 with commit d42c2b18c42da7378e67b6414aafe93b65de89d1 Issue introduced in 5.17 with commit 2e3cbf425804fb44a005e252f88f93dff108c911 and fixed in 6.3 with commit 203a55f04f66eea1a1ca7e5a302a7f5c99c62327 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-2023-53278 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: fs/ubifs/sysfs.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/1c5fdf2d4647219d2267ccb08c7f2c7095bf3450 https://git.kernel.org/stable/c/d42c2b18c42da7378e67b6414aafe93b65de89d1 https://git.kernel.org/stable/c/203a55f04f66eea1a1ca7e5a302a7f5c99c62327