Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1E31E48BD35 for ; Fri, 25 Sep 2026 10:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331850; cv=none; b=OoNVXAsiLg6IF14FbnnpgRuojglxr66Rit3/0MU/YClK5EeNazOwA2x4NvTRDWtAfRYytmuutxhe56N9wskW+/6cAYO3y8wIp68NcoTyDK/pPkElql+FHyjiFz3DZWRDRcxew8MbDuTxahjlB1cSSW0SPnF8YPu8JaBUXeaAmAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331850; c=relaxed/simple; bh=8Oz0wvcrs/9ZEGHFv9ItwpA6fYwjd8bTPSu1CQE7ZgU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZBQZk0KL+hB+hSWI4GiNiSCMVeXpgSkLGZjWjxoEsLZx0y6RhzJVh1V6hbLfrUP4q9k10+1nnK+XTbql0aoDmFtgVeDGuzzDYPdmhmAFUQlrSiFVC1DEbMlftSI8TqGXaxtNiWkXZxbDbohTadCVTP1HJKN0xa0Wc9v3TrjdKGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TX3+G93G; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TX3+G93G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 437971F000FF; Fri, 25 Sep 2026 10:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331848; bh=x2Oic0Y7CsnXvMLnKn0TPiYzbwTPzlGrF4Sxq/G4mOQ=; h=From:To:Cc:Subject:Date:Reply-To; b=TX3+G93Gtifm+F/HzElOenBBR6Hfd69PZ0os+wKYZs8VuaSzPWzUnk45GUJ65/+OC PfFMqau5TSghpTcf+mrX2qM3EKyB7nzH2kUC5ciokhEIuQmsp0sPTPViB5rc67cqyO eTm/MEUqhZ4hQLu+2JMHITbw8gDcQBxyxmIqHkjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97554: smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr() Date: Fri, 25 Sep 2026 12:22:14 +0200 Message-ID: <2026092551-CVE-2026-97554-2d07@gregkh> X-Mailer: git-send-email 2.55.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=2352; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y877yp1JF3oYWNJf1HxmjOFCBihd1bYIydsSlPm35wY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvO3vv8nZduxhbf8sqXq3OrddVZ/vzDFZ4b4/32Kfr nXqVNNfHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR92cMC3YXMB1rezrT5fyv n3FzOtXLZjn31DLMT/vMyL645/Zite1yzB9WTDh9aOE7LgA= 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: smb: client: avoid using uninitialized SIDs in cifs_posix_to_fattr() cifs_posix_to_fattr() ignores the return value of posix_info_parse(). When a malformed POSIX directory entry is encountered (e.g. invalid SID lengths from an untrusted server), posix_info_parse() returns -1 without populating the 'parsed' struct. The uninitialized stack memory in parsed.owner and parsed.group is then passed to sid_to_id(), which processes the garbage bytes and passes them to request_key() to construct a SID string, potentially leaking kernel stack contents to the userspace idmap daemon. Fix this by checking the return value and skipping the SID-to-id mapping when parsing fails. The remaining fattr fields (timestamps, mode, etc.) are populated directly from the 'info' pointer so they are unaffected. The Linux kernel CVE team has assigned CVE-2026-97554 to this issue. Affected and fixed versions =========================== Fixed in 7.2.7 with commit c9a8b60ce140a68d172452f418137fc7ddbae7db Fixed in 7.3-rc3 with commit da6e25842431982d5a53cf00d925b98c690f4467 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-2026-97554 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/smb/client/readdir.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/c9a8b60ce140a68d172452f418137fc7ddbae7db https://git.kernel.org/stable/c/da6e25842431982d5a53cf00d925b98c690f4467