# Priority Summary — 20261020_223347_cifssmb.c

**Date:** 2026-10-20 22:35:21  
**Source:** /home/src/linux/fs/smb/client/cifssmb.c  
**Total findings:** 29  
**Retired by Stage 1.7 proof:** 0 (not ranked below)

**Kernel:** `v7.3-rc5-404-g35aed8a26cce`  
**Branch:** `work/bc1`  
**Local commits** since `origin/master` (67):  
- `35aed8a26cce` smb: client: fix OOB read due to invalid data_offset in CIFSSMBQAllEAs
- `b9a9e19bf4a6` smb: client: fix OOB reads in cifs_to_posix_acl()
- `c5ea4e4d4169` smb: client: fix incorrect path level counting for DFS symlinks
- `b042c98ceedd` smb: client: fix OOB read counting path levels for share-root symlink
- `58b6636ac0c0` smb: client: fix OOB read when symlink target equals symlinkroot
- `ccc4ad864181` smb: client: prevent read of header as data in open_cached_dir
- `78f739858464` smb: client: reclaim credits for decrypted reads with no matching mid
- `2225ab306575` smb: client: do not pass a NULL buf to is_oplock_break()
- `8667061cf993` smb: client: require stable pages for SMB compression
- `cafbf020e437` smb: client: allocate struct SMB2_sess_data on the stack
- `f13208f26c05` smb: client: allocate struct sess_data on the stack
- `b012ffcd45b0` smb: client: drop redundant nls_table arg from CIFSSMBRenameOpenFile()
- `34c6fdb03b05` smb: client: drop redundant nls_table arg from SMBLegacyOpen()
- `b2c49578d342` smb: client: drop redundant nls_table arg from CIFSPOSIXCreate()
- `8552a75e219c` smb: client: drop redundant nls_table arg from CIFSPOSIXDelFile()
- `fd8ac150455d` smb: client: drop redundant nls_table arg from ->tree_connect()
- `172cbcd178c8` smb: client: drop redundant nls_table arg from cifs_setup_session()
- `ca67b7abefda` smb: client: drop redundant nls_table arg from ->sess_setup()
- `9f9ab02ddfcb` smb: client: drop unused nls_table arg from decode_ascii_ssetup()
- `ea0261b23fa5` smb: client: drop redundant nls_table arg from decode_unicode_ssetup()
- `34e037c98a5d` smb: client: drop unused nls_table arg from ascii_ssetup_strings()
- `f945ba31422c` smb: client: drop redundant nls_table arg from unicode_ssetup_strings()
- `40e439b61fd9` smb: client: drop unused nls_table arg from ascii_domain_string()
- `40c21e0e41ba` smb: client: drop redundant nls_table arg from unicode_domain_string()
- `6b3884e9d0ac` smb: client: drop unused nls_table arg from ascii_oslm_strings()
- `4acec99c4c1a` smb: client: drop redundant nls_table arg from build_ntlmssp_auth_blob()
- `aadcd752e34b` smb: client: drop redundant nls_table arg from build_ntlmssp_smb3_negotiate_blob()
- `a8ef7f94f901` smb: client: drop redundant nls_table arg from build_ntlmssp_negotiate_blob()
- `6d16358ac43d` smb: client: drop redundant nls_table arg from setup_ntlmv2_rsp()
- `71098da2195f` smb: client: drop redundant nls_table arg from calc_ntlmv2_hash()
- `b07c7b781f89` smb: client: drop redundant nls_table arg from build_avpair_blob()
- `64fd7c38697b` smb: client: drop redundant nls_table arg from ->set_EA()
- `cd040ff11dae` smb: client: drop redundant nls_table arg from CIFSSMBSetPathInfo()
- `78abbc67787d` smb: client: drop redundant nls_table arg from SMBSetInformation()
- `740619915257` smb: client: size smb2_compound_vars.qi_iov for the padding iov
- `c38f4e84c935` smb: client: remove unused file flags ioctl handlers
- `273913b7c33a` smb: client: implement fileattr_set for compression flags
- `62d973b788e0` smb: client: remove unused num_acl_set stat from cifs_tcon
- `5ef569b5b789` smb: client: remove write-only signing_negotiated from TCP_Server_Info
- `6b56bb27466f` smb: client: remove write-only sec_kerberosu2u from TCP_Server_Info
- `5be685f3516c` smb: client: remove write-only max_rw from TCP_Server_Info
- `1f0cd146ba93` smb: client: remove unused overrideSecFlg from struct cifs_ses
- `c684280717a8` smb: client: remove the internal CIFS version number
- `5dce507a8ba4` smb: client: clean up cifs_buf_release()
- `bb274d815597` smb: client: remove commented-out Unix caps assignment
- `e4a1508b8b3f` smb: client: remove commented-out time conversion debug message
- `5c2824d98b30` smb: client: remove commented-out CIFSSMBWinSetPerms() call
- `bdf9ccc58bc6` smb: client: remove commented-out QPathInfo debug message
- `a59aeb074cac` smb: client: remove commented-out LOCK_RSP declaration
- `1e0e189998c0` smb: client: remove commented-out write debug message
- `775bf158872f` smb: client: remove commented-out oplock assignment
- `a40b17cc9eca` smb: client: remove commented-out cancel_*_requests() calls
- `fe3fc9f77971` smb: client: remove commented-out i_flags assignment
- `2bcbf169f311` smb: client: remove commented-out ntlmv2_support definition
- `a4111beeade9` smb: client: log the selected security type on session setup failure
- `7c4bf530aefa` smb: client: avoid breaking the file lease when probing mfsymlinks
- `54a53dd9b6d9` smb: client: set lease_granted before revalidating inode in cifs_nt_open()
- `689ab4c8d159` smb: client: rename mfsymlink helpers to the smb2_ prefix
- `276dcdc55b5d` smb: client: drop the redundant name bounds in cifs_filldir()
- `531aa4239b0d` smb: client: reject short or out-of-range FIND response parameters
- `29bd6773187c` smb: client: reject FIND data areas that run past the received response
- `fa0c2f082946` smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan
- `f8171804a39e` smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2
- `570c783a96f0` smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
- `59131dd72f62` smb: client: fix use-after-free infoleak via the readdir resume name
- `031278577380` smb: client: fix use-after-free in cifs_ses_add_channel()
- `80f49404968d` smb: client: fast fail sends if need to reconnect

**Tier breakdown:** **Critical:** 16  |  **Medium:** 8  |  **Low:** 5

**By category:** Cat A: 7  Cat B: 5  Cat C: 1  Cat E: 14  Cat F: 1  Cat H: 1

**LLM:** 16 real bug(s)  |  13 FP  |  0 unanalyzed


---

## Top 29 Findings by Priority

| # | Tier | Cat | Function | File | Variable | Sink | Guard | LLM |
|---|---|---|---|---|---|---|---|---|
| 1 | Critical | E | `CIFSFindFirst` | fs/smb/client/cifssmb.c | `parms` | parms->EndofSearch | no | BUG:oob_read |
| 2 | Critical | E | `CIFSGetExtAttr` | fs/smb/client/cifssmb.c | `pfinfo` | pfinfo->mode | no | BUG:oob_read |
| 3 | Critical | E | `CIFSPOSIXCreate` | fs/smb/client/cifssmb.c | `psx_rsp` | psx_rsp->OplockFlags | no | BUG:oob_read |
| 4 | Critical | A | `CIFSPOSIXCreate` | fs/smb/client/cifssmb.c | `psx_rsp` | memcpy() | no | BUG:oob_read |
| 5 | Critical | E | `CIFSSMBPosixLock` | fs/smb/client/cifssmb.c | `parm_data` | parm_data->lock_type | no | BUG:oob_read |
| 6 | Critical | A | `CIFSSMBQFSAttributeInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 7 | Critical | A | `CIFSSMBQFSDeviceInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 8 | Critical | E | `CIFSSMBQFSInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BytesPerSector | no | BUG:oob_read |
| 9 | Critical | E | `CIFSSMBQFSPosixInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BlockSize | no | BUG:oob_read |
| 10 | Critical | A | `CIFSSMBQFSUnixInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 11 | Critical | E | `SMBOldQFSInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BytesPerSector | no | BUG:oob_read |
| 12 | Critical | E | `cifs_create_reparse_inode` | fs/smb/client/cifssmb.c | `ea` | ea->next_entry_offset | no | BUG:oob_read |
| 13 | Critical | B | `cifs_create_reparse_inode` | fs/smb/client/cifssmb.c | `le16_to_cpu(ea->ea_value_length)` | memcpy() in CIFSSMBSetEA() | no | BUG:oob_read |
| 14 | Critical | E | `CIFSGetSrvInodeNumber` | fs/smb/client/cifssmb.c | `pfinfo` | pfinfo->UniqueId | no | BUG:info_disclosure |
| 15 | Critical | E | `cifs_query_reparse_point` | fs/smb/client/cifssmb.c | `buf` | buf->ReparseDataLength | no | BUG:info_disclosure |
| 16 | Critical | H | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `list_len` | narrowing_assignment() | no | BUG:info_disclosure |
| 17 | Medium | E | `CIFSFindNext` | fs/smb/client/cifssmb.c | `parms` | parms->EndofSearch | no | FP |
| 18 | Medium | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `ea_response_data` | ea_response_data->list_len | no | FP |
| 19 | Medium | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_fea` | temp_fea->name_len | no | FP |
| 20 | Medium | A | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_ptr` | memcmp() | no | FP |
| 21 | Medium | A | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_ptr` | memcpy() | no | FP |
| 22 | Medium | A | `CIFSSMBRead` | fs/smb/client/cifssmb.c | `pReadData` | memcpy() | no | FP |
| 23 | Medium | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `name_len` | memcpy() | no | FP |
| 24 | Medium | C | `cifs_to_posix_acl` | fs/smb/client/cifssmb.c | `count` | subscript | no | FP |
| 25 | Low | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `ea_response_data` | ea_response_data->list | yes? | FP |
| 26 | Low | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `name_len` | memcmp() | yes? | FP |
| 27 | Low | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `value_len` | memcpy() | yes? | FP |
| 28 | Low | B | `CIFSSMBRead` | fs/smb/client/cifssmb.c | `data_length` | memcpy() | yes? | FP |
| 29 | Low | F | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `list_len` | loop bound | yes? | FP |

---

## All Findings by Tier

### Critical

| # | Score | Cat | Function | File | Variable | Sink | Guard | LLM |
|---|---|---|---|---|---|---|---|---|
| 1 | 350 | E | `CIFSFindFirst` | fs/smb/client/cifssmb.c | `parms` | parms->EndofSearch | no | BUG:oob_read |
| 2 | 350 | E | `CIFSGetExtAttr` | fs/smb/client/cifssmb.c | `pfinfo` | pfinfo->mode | no | BUG:oob_read |
| 3 | 350 | E | `CIFSPOSIXCreate` | fs/smb/client/cifssmb.c | `psx_rsp` | psx_rsp->OplockFlags | no | BUG:oob_read |
| 4 | 350 | A | `CIFSPOSIXCreate` | fs/smb/client/cifssmb.c | `psx_rsp` | memcpy() | no | BUG:oob_read |
| 5 | 350 | E | `CIFSSMBPosixLock` | fs/smb/client/cifssmb.c | `parm_data` | parm_data->lock_type | no | BUG:oob_read |
| 6 | 350 | A | `CIFSSMBQFSAttributeInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 7 | 350 | A | `CIFSSMBQFSDeviceInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 8 | 350 | E | `CIFSSMBQFSInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BytesPerSector | no | BUG:oob_read |
| 9 | 350 | E | `CIFSSMBQFSPosixInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BlockSize | no | BUG:oob_read |
| 10 | 350 | A | `CIFSSMBQFSUnixInfo` | fs/smb/client/cifssmb.c | `response_data` | memcpy() | no | BUG:oob_read |
| 11 | 350 | E | `SMBOldQFSInfo` | fs/smb/client/cifssmb.c | `response_data` | response_data->BytesPerSector | no | BUG:oob_read |
| 12 | 350 | E | `cifs_create_reparse_inode` | fs/smb/client/cifssmb.c | `ea` | ea->next_entry_offset | no | BUG:oob_read |
| 13 | 340 | B | `cifs_create_reparse_inode` | fs/smb/client/cifssmb.c | `le16_to_cpu(ea->ea_value_length)` | memcpy() in CIFSSMBSetEA() | no | BUG:oob_read |
| 14 | 310 | E | `CIFSGetSrvInodeNumber` | fs/smb/client/cifssmb.c | `pfinfo` | pfinfo->UniqueId | no | BUG:info_disclosure |
| 15 | 310 | E | `cifs_query_reparse_point` | fs/smb/client/cifssmb.c | `buf` | buf->ReparseDataLength | no | BUG:info_disclosure |
| 16 | 280 | H | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `list_len` | narrowing_assignment() | no | BUG:info_disclosure |
### Medium

| # | Score | Cat | Function | File | Variable | Sink | Guard | LLM |
|---|---|---|---|---|---|---|---|---|
| 17 | 70 | E | `CIFSFindNext` | fs/smb/client/cifssmb.c | `parms` | parms->EndofSearch | no | FP |
| 18 | 70 | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `ea_response_data` | ea_response_data->list_len | no | FP |
| 19 | 70 | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_fea` | temp_fea->name_len | no | FP |
| 20 | 70 | A | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_ptr` | memcmp() | no | FP |
| 21 | 70 | A | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `temp_ptr` | memcpy() | no | FP |
| 22 | 70 | A | `CIFSSMBRead` | fs/smb/client/cifssmb.c | `pReadData` | memcpy() | no | FP |
| 23 | 60 | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `name_len` | memcpy() | no | FP |
| 24 | 60 | C | `cifs_to_posix_acl` | fs/smb/client/cifssmb.c | `count` | subscript | no | FP |
### Low

| # | Score | Cat | Function | File | Variable | Sink | Guard | LLM |
|---|---|---|---|---|---|---|---|---|
| 25 | 50 | E | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `ea_response_data` | ea_response_data->list | yes? | FP |
| 26 | 40 | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `name_len` | memcmp() | yes? | FP |
| 27 | 40 | B | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `value_len` | memcpy() | yes? | FP |
| 28 | 40 | B | `CIFSSMBRead` | fs/smb/client/cifssmb.c | `data_length` | memcpy() | yes? | FP |
| 29 | 30 | F | `CIFSSMBQAllEAs` | fs/smb/client/cifssmb.c | `list_len` | loop bound | yes? | FP |

---

## Findings by File

| File | Findings |
|---|---|
| fs/smb/client/cifssmb.c | 29 |
