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 ADD4670830 for ; Tue, 13 Jan 2026 15:29:27 +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=1768318167; cv=none; b=Cmt1puoIXl6lpkP7TOSF+eMjLevxJp67CJm2rp72p5iN1XoxMQhzHbuIVPgGSSAUf+38t4pjqFTE9nZOf87Y1V8Ap1UKHEWf0M+5cvJyX/3j1CeYof4FpXzWfH3+7jgEV/yk01whzqnMSD3nLjk+jO57x6oWX53QN4tcD6Y06WE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318167; c=relaxed/simple; bh=v6TYhGEPhj5GB3tI2JpxnhBFZ8uMmtnQeJOmU6OJ8uc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=reDTInNj+0PmRSQYHwIDiTZvBkc234UdKn7wxDdssVRi7tCcd6aC2CwoyCqxiY5cdWG5a/xAA5RFtV2VpL7xbDwcdyHxQD61jJzaCCPdOd5o2PVjGeZlr6r+B0QjUbEsrESl4OMpCpwOp2vKIiPi3V0vckrwo2nskaY9lk37mLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Sda8JChG; 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="Sda8JChG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22925C116C6; Tue, 13 Jan 2026 15:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318167; bh=v6TYhGEPhj5GB3tI2JpxnhBFZ8uMmtnQeJOmU6OJ8uc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Sda8JChG2sf0/KO9dQL1SneAKYQMxkYdmvrwebhxz2PrQz/TljI8wU/pfYaNmkx5g /LGJJ3q3njs+gXP0JxdzVBqTNTYrkUoEpOjoDrPFNllRBntjfUyAcEG1cpg19rS/VU nNrZTk7XmGtEhmTC6MSF99mk58XglMlvdYD4bgIM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68767: hfsplus: Verify inode mode when loading from disk Date: Tue, 13 Jan 2026 16:28:53 +0100 Message-ID: <2026011353-CVE-2025-68767-cd16@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=2594; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Fhynvnk1Md7P9NYrkVtpeJONKvNa/xcFvlOW+pPIFmY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKdv+G9yutIlRvONw3+fBFafYGW7/OifqRy31Yfz8q fHAn18cHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRyW4M853WLthjudmwVfHj uvwVagc7nte892eYH/J7tt7ju/lL7fTnNt/5JaD/ufyeJAA= 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: hfsplus: Verify inode mode when loading from disk syzbot is reporting that S_IFMT bits of inode->i_mode can become bogus when the S_IFMT bits of the 16bits "mode" field loaded from disk are corrupted. According to [1], the permissions field was treated as reserved in Mac OS 8 and 9. According to [2], the reserved field was explicitly initialized with 0, and that field must remain 0 as long as reserved. Therefore, when the "mode" field is not 0 (i.e. no longer reserved), the file must be S_IFDIR if dir == 1, and the file must be one of S_IFREG/S_IFLNK/S_IFCHR/ S_IFBLK/S_IFIFO/S_IFSOCK if dir == 0. The Linux kernel CVE team has assigned CVE-2025-68767 to this issue. Affected and fixed versions =========================== Fixed in 6.1.160 with commit 001f44982587ad462b3002ee40c75e8df67d597d Fixed in 6.6.120 with commit 05ec9af3cc430683c97f76027e1c55ac6fd25c59 Fixed in 6.12.64 with commit edfb2e602b5ba5ca6bf31cbac20b366efb72b156 Fixed in 6.18.3 with commit 91f114bffa36ce56d0e1f60a0a44fc09baaefc79 Fixed in 6.19-rc1 with commit 005d4b0d33f6b4a23d382b7930f7a96b95b01f39 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-2025-68767 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/hfsplus/inode.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/001f44982587ad462b3002ee40c75e8df67d597d https://git.kernel.org/stable/c/05ec9af3cc430683c97f76027e1c55ac6fd25c59 https://git.kernel.org/stable/c/edfb2e602b5ba5ca6bf31cbac20b366efb72b156 https://git.kernel.org/stable/c/91f114bffa36ce56d0e1f60a0a44fc09baaefc79 https://git.kernel.org/stable/c/005d4b0d33f6b4a23d382b7930f7a96b95b01f39