Priority Summary — 20261020_223347_cifssmb.c

Date: 2026-10-20 22:35:21 Source: /home/src/linux/fs/smb/client/cifssmb.c Total: 29 findings Retired by Stage 1.7 proof: 0 (not ranked below) 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  |  13 FP  |  0 unanalyzed Kernel: v7.3-rc5-404-g35aed8a26cce Branch: work/bc1
67 local commit(s) since origin/master
  1. 35aed8a26cce smb: client: fix OOB read due to invalid data_offset in CIFSSMBQAllEAs
  2. b9a9e19bf4a6 smb: client: fix OOB reads in cifs_to_posix_acl()
  3. c5ea4e4d4169 smb: client: fix incorrect path level counting for DFS symlinks
  4. b042c98ceedd smb: client: fix OOB read counting path levels for share-root symlink
  5. 58b6636ac0c0 smb: client: fix OOB read when symlink target equals symlinkroot
  6. ccc4ad864181 smb: client: prevent read of header as data in open_cached_dir
  7. 78f739858464 smb: client: reclaim credits for decrypted reads with no matching mid
  8. 2225ab306575 smb: client: do not pass a NULL buf to is_oplock_break()
  9. 8667061cf993 smb: client: require stable pages for SMB compression
  10. cafbf020e437 smb: client: allocate struct SMB2_sess_data on the stack
  11. f13208f26c05 smb: client: allocate struct sess_data on the stack
  12. b012ffcd45b0 smb: client: drop redundant nls_table arg from CIFSSMBRenameOpenFile()
  13. 34c6fdb03b05 smb: client: drop redundant nls_table arg from SMBLegacyOpen()
  14. b2c49578d342 smb: client: drop redundant nls_table arg from CIFSPOSIXCreate()
  15. 8552a75e219c smb: client: drop redundant nls_table arg from CIFSPOSIXDelFile()
  16. fd8ac150455d smb: client: drop redundant nls_table arg from ->tree_connect()
  17. 172cbcd178c8 smb: client: drop redundant nls_table arg from cifs_setup_session()
  18. ca67b7abefda smb: client: drop redundant nls_table arg from ->sess_setup()
  19. 9f9ab02ddfcb smb: client: drop unused nls_table arg from decode_ascii_ssetup()
  20. ea0261b23fa5 smb: client: drop redundant nls_table arg from decode_unicode_ssetup()
  21. 34e037c98a5d smb: client: drop unused nls_table arg from ascii_ssetup_strings()
  22. f945ba31422c smb: client: drop redundant nls_table arg from unicode_ssetup_strings()
  23. 40e439b61fd9 smb: client: drop unused nls_table arg from ascii_domain_string()
  24. 40c21e0e41ba smb: client: drop redundant nls_table arg from unicode_domain_string()
  25. 6b3884e9d0ac smb: client: drop unused nls_table arg from ascii_oslm_strings()
  26. 4acec99c4c1a smb: client: drop redundant nls_table arg from build_ntlmssp_auth_blob()
  27. aadcd752e34b smb: client: drop redundant nls_table arg from build_ntlmssp_smb3_negotiate_blob()
  28. a8ef7f94f901 smb: client: drop redundant nls_table arg from build_ntlmssp_negotiate_blob()
  29. 6d16358ac43d smb: client: drop redundant nls_table arg from setup_ntlmv2_rsp()
  30. 71098da2195f smb: client: drop redundant nls_table arg from calc_ntlmv2_hash()
  31. b07c7b781f89 smb: client: drop redundant nls_table arg from build_avpair_blob()
  32. 64fd7c38697b smb: client: drop redundant nls_table arg from ->set_EA()
  33. cd040ff11dae smb: client: drop redundant nls_table arg from CIFSSMBSetPathInfo()
  34. 78abbc67787d smb: client: drop redundant nls_table arg from SMBSetInformation()
  35. 740619915257 smb: client: size smb2_compound_vars.qi_iov for the padding iov
  36. c38f4e84c935 smb: client: remove unused file flags ioctl handlers
  37. 273913b7c33a smb: client: implement fileattr_set for compression flags
  38. 62d973b788e0 smb: client: remove unused num_acl_set stat from cifs_tcon
  39. 5ef569b5b789 smb: client: remove write-only signing_negotiated from TCP_Server_Info
  40. 6b56bb27466f smb: client: remove write-only sec_kerberosu2u from TCP_Server_Info
  41. 5be685f3516c smb: client: remove write-only max_rw from TCP_Server_Info
  42. 1f0cd146ba93 smb: client: remove unused overrideSecFlg from struct cifs_ses
  43. c684280717a8 smb: client: remove the internal CIFS version number
  44. 5dce507a8ba4 smb: client: clean up cifs_buf_release()
  45. bb274d815597 smb: client: remove commented-out Unix caps assignment
  46. e4a1508b8b3f smb: client: remove commented-out time conversion debug message
  47. 5c2824d98b30 smb: client: remove commented-out CIFSSMBWinSetPerms() call
  48. bdf9ccc58bc6 smb: client: remove commented-out QPathInfo debug message
  49. a59aeb074cac smb: client: remove commented-out LOCK_RSP declaration
  50. 1e0e189998c0 smb: client: remove commented-out write debug message
  51. 775bf158872f smb: client: remove commented-out oplock assignment
  52. a40b17cc9eca smb: client: remove commented-out cancel_*_requests() calls
  53. fe3fc9f77971 smb: client: remove commented-out i_flags assignment
  54. 2bcbf169f311 smb: client: remove commented-out ntlmv2_support definition
  55. a4111beeade9 smb: client: log the selected security type on session setup failure
  56. 7c4bf530aefa smb: client: avoid breaking the file lease when probing mfsymlinks
  57. 54a53dd9b6d9 smb: client: set lease_granted before revalidating inode in cifs_nt_open()
  58. 689ab4c8d159 smb: client: rename mfsymlink helpers to the smb2_ prefix
  59. 276dcdc55b5d smb: client: drop the redundant name bounds in cifs_filldir()
  60. 531aa4239b0d smb: client: reject short or out-of-range FIND response parameters
  61. 29bd6773187c smb: client: reject FIND data areas that run past the received response
  62. fa0c2f082946 smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan
  63. f8171804a39e smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2
  64. 570c783a96f0 smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
  65. 59131dd72f62 smb: client: fix use-after-free infoleak via the readdir resume name
  66. 031278577380 smb: client: fix use-after-free in cifs_ses_add_channel()
  67. 80f49404968d smb: client: fast fail sends if need to reconnect

All Findings — Ranked by Priority

#TierScoreCatFunctionFileVariableSinkGuardLLM
1Critical 350ECIFSFindFirstfs/smb/client/cifssmb.cparmsparms->EndofSearchnoBUG:oob_read
2Critical 350ECIFSGetExtAttrfs/smb/client/cifssmb.cpfinfopfinfo->modenoBUG:oob_read
3Critical 350ECIFSPOSIXCreatefs/smb/client/cifssmb.cpsx_rsppsx_rsp->OplockFlagsnoBUG:oob_read
4Critical 350ACIFSPOSIXCreatefs/smb/client/cifssmb.cpsx_rspmemcpy()noBUG:oob_read
5Critical 350ECIFSSMBPosixLockfs/smb/client/cifssmb.cparm_dataparm_data->lock_typenoBUG:oob_read
6Critical 350ACIFSSMBQFSAttributeInfofs/smb/client/cifssmb.cresponse_datamemcpy()noBUG:oob_read
7Critical 350ACIFSSMBQFSDeviceInfofs/smb/client/cifssmb.cresponse_datamemcpy()noBUG:oob_read
8Critical 350ECIFSSMBQFSInfofs/smb/client/cifssmb.cresponse_dataresponse_data->BytesPerSectornoBUG:oob_read
9Critical 350ECIFSSMBQFSPosixInfofs/smb/client/cifssmb.cresponse_dataresponse_data->BlockSizenoBUG:oob_read
10Critical 350ACIFSSMBQFSUnixInfofs/smb/client/cifssmb.cresponse_datamemcpy()noBUG:oob_read
11Critical 350ESMBOldQFSInfofs/smb/client/cifssmb.cresponse_dataresponse_data->BytesPerSectornoBUG:oob_read
12Critical 350Ecifs_create_reparse_inodefs/smb/client/cifssmb.ceaea->next_entry_offsetnoBUG:oob_read
13Critical 340Bcifs_create_reparse_inodefs/smb/client/cifssmb.cle16_to_cpu(ea->ea_value_length)memcpy() in CIFSSMBSetEA()noBUG:oob_read
14Critical 310ECIFSGetSrvInodeNumberfs/smb/client/cifssmb.cpfinfopfinfo->UniqueIdnoBUG:info_disclosure
15Critical 310Ecifs_query_reparse_pointfs/smb/client/cifssmb.cbufbuf->ReparseDataLengthnoBUG:info_disclosure
16Critical 280HCIFSSMBQAllEAsfs/smb/client/cifssmb.clist_lennarrowing_assignment()noBUG:info_disclosure
17Medium 70ECIFSFindNextfs/smb/client/cifssmb.cparmsparms->EndofSearchnoFP
18Medium 70ECIFSSMBQAllEAsfs/smb/client/cifssmb.cea_response_dataea_response_data->list_lennoFP
19Medium 70ECIFSSMBQAllEAsfs/smb/client/cifssmb.ctemp_featemp_fea->name_lennoFP
20Medium 70ACIFSSMBQAllEAsfs/smb/client/cifssmb.ctemp_ptrmemcmp()noFP
21Medium 70ACIFSSMBQAllEAsfs/smb/client/cifssmb.ctemp_ptrmemcpy()noFP
22Medium 70ACIFSSMBReadfs/smb/client/cifssmb.cpReadDatamemcpy()noFP
23Medium 60BCIFSSMBQAllEAsfs/smb/client/cifssmb.cname_lenmemcpy()noFP
24Medium 60Ccifs_to_posix_aclfs/smb/client/cifssmb.ccountsubscriptnoFP
25Low 50ECIFSSMBQAllEAsfs/smb/client/cifssmb.cea_response_dataea_response_data->listyes?FP
26Low 40BCIFSSMBQAllEAsfs/smb/client/cifssmb.cname_lenmemcmp()yes?FP
27Low 40BCIFSSMBQAllEAsfs/smb/client/cifssmb.cvalue_lenmemcpy()yes?FP
28Low 40BCIFSSMBReadfs/smb/client/cifssmb.cdata_lengthmemcpy()yes?FP
29Low 30FCIFSSMBQAllEAsfs/smb/client/cifssmb.clist_lenloop boundyes?FP

Findings by File

FileFindings
fs/smb/client/cifssmb.c29