Bug 2407341 (CVE-2025-40099) - CVE-2025-40099 kernel: cifs: parse_dfs_referrals: prevent oob on malformed input
Summary: CVE-2025-40099 kernel: cifs: parse_dfs_referrals: prevent oob on malformed input
Keywords:
Status: NEW
Alias: CVE-2025-40099
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-30 10:02 UTC by OSIDB Bzimport
Modified: 2025-10-30 16:31 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-30 10:02:36 UTC
In the Linux kernel, the following vulnerability has been resolved:

cifs: parse_dfs_referrals: prevent oob on malformed input

Malicious SMB server can send invalid reply to FSCTL_DFS_GET_REFERRALS

- reply smaller than sizeof(struct get_dfs_referral_rsp)
- reply with number of referrals smaller than NumberOfReferrals in the
header

Processing of such replies will cause oob.

Return -EINVAL error on such replies to prevent oob-s.


Note You need to log in before you can comment on or make changes to this bug.