cifs: Fix integer overflow while processing acdirmax mount option

[ Upstream commit 5b29891f91dfb8758baf1e2217bef4b16b2b165b ]

User-provided mount parameter acdirmax of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

BUG=b/410772576
TEST=presubmit
RELEASE_NOTE=Fixed CVE-2025-21963 in the Linux kernel.

cos-patch: security-moderate
Fixes: 4c9f948142a5 ("cifs: Add new mount parameter "acdirmax" to allow caching directory metadata")
Change-Id: I7aee437ce2cfe2bdd5c9f5b8c36968bda8fc21a6
Signed-off-by: Murad Masimov <[email protected]>
Signed-off-by: Steve French <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Kernel CVE Triage Automation <[email protected]>
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/99207
Tested-by: Cusky Presubmit Bot <[email protected]>
Reviewed-by: Shuo Yang <[email protected]>
Reviewed-by: Arnav Kansal <[email protected]>
1 file changed