From mboxrd@z Thu Jan 1 00:00:00 1970 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 21AE0381E85 for ; Sat, 25 Jul 2026 08:53:55 +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=1784969636; cv=none; b=bcM+FdoGTB54fxqiQ3dO33zgAn/Kve5PRubvVl6L5IuPXMJuYJZ29qAMCFLEHQHdx8xHfMySgvUUVfKWkIu13SLYJSmP3h3xPjNqXzvIsUTCDFZz10oFLuWed8q2Wplt8QuBht40aWjdQz+Qgma1WtwLwB0rZU/wHbRhLugvNJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969636; c=relaxed/simple; bh=QNO8RQmCUdSDB7DPqVj7728VWIeMsUPl+mZhM4pIhbU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ivIBz+1AXJoDVxkQg1nliOB437KT7QNh3U2vJqXybPo/LQLC9F6cbO0TcAcNJLyvtC5Z264KRRlV352sEMAfQTjhIYiQ1K2nCPmQNtiukv1HwIu0PMHinke3S827zX7ZVfQQ+lOxYhajAh32a4sTJQZaepkczL/MQBC76mNjV6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PLXhDhr5; 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="PLXhDhr5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 731571F000E9; Sat, 25 Jul 2026 08:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969635; bh=HzAQSEcjhGG5UQHDlsPAW/xQFZjwqOtJLAXlE7qbfGc=; h=From:To:Cc:Subject:Date:Reply-To; b=PLXhDhr5+pFkjjgG104SmbECchz0+1SigIm02G6bOJrj0gYRnMNISbNV44kIbjH+P RokfgxfjcruGm0k7PF683odKkkf4XILKMQm0SfXAMkQ3kONerra0mbiq/Y3c+cqR8C VMZTGTkpGDkJKdKLK/p+ntMDFr43pdQT+ULaLfkA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64327: usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks Date: Sat, 25 Jul 2026 10:49:04 +0200 Message-ID: <2026072512-CVE-2026-64327-fb4d@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=2782; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GRXIvNopeAV0msqVhLWIawDI9ADm0T3i7F2xfH5ihPU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFb7uuw/Z6vJb66SvsTz344B4reOxZ3MfBnqb2+w1m 2q6z/t9RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkTy/D/AjD9TKuCxoSFy+3 2BPRESm7acUuLoYFy5xtzH15W8MEZaXv1TBz/43e2csMAA== 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: usb: gadget: f_fs: Initialize epfile->in early to fix endpoint direction checks When parsing endpoint descriptors, ffs_data_got_descs() generates the eps_addrmap which contains the endpoint direction. However, epfile->in was previously only populated in ffs_func_eps_enable() which executes upon USB host connection. As a result, early userspace ioctls like FUNCTIONFS_DMABUF_ATTACH that run before the host connects would see epfile->in as 0, leading to incorrect DMA directions. By moving the initialization to ffs_epfiles_create(), epfile->in is accurate before userspace opens the endpoint files. The Linux kernel CVE team has assigned CVE-2026-64327 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.12.96 with commit 82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 6.18.39 with commit 9e04055ab5fc0470a0031ee6934739f9aa8f34a5 Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.1.4 with commit f99f32ea9aa976afcbec20647ed33b50a52002c1 Issue introduced in 6.9 with commit 7b07a2a7ca02a20124b552be96c5a56910795488 and fixed in 7.2-rc3 with commit 82cfd4739011bdc7e87b5d585703427e89ddfaa5 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-64327 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/usb/gadget/function/f_fs.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/82cf1142e5ccf2b6d6d22ef713aaf3e5f2b5716b https://git.kernel.org/stable/c/9e04055ab5fc0470a0031ee6934739f9aa8f34a5 https://git.kernel.org/stable/c/f99f32ea9aa976afcbec20647ed33b50a52002c1 https://git.kernel.org/stable/c/82cfd4739011bdc7e87b5d585703427e89ddfaa5