CVE-2026-35339: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
The recursive mode (-R) of the chmod utility in uutils coreutils incorrectly handles exit codes when processing multiple files. The final return value is determined solely by the success or failure of the last file processed. This allows the command to return an exit code of 0 (success) even if errors were encountered on previous files, such as 'Operation not permitted'. Scripts relying on these exit codes may proceed under a false sense of success while sensitive files remain with restrictive or incorrect permissions.
AI Analysis
Technical Summary
The recursive mode (-R) of the chmod utility in uutils coreutils does not correctly aggregate exit codes when processing multiple files. Instead of reflecting any errors encountered during the entire operation, it returns the exit code of only the last file processed. This incorrect check of function return values (CWE-253) can lead to false success indications, undermining the reliability of scripts and automation that depend on accurate exit codes for permission changes.
Potential Impact
Scripts and automated processes that rely on chmod's exit code to verify successful permission changes may proceed under a false assumption of success. This can result in sensitive files retaining restrictive or incorrect permissions, potentially causing security policy violations or operational issues. There is no indication of confidentiality or availability impact, but integrity of permission enforcement is affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should manually verify file permissions after recursive chmod operations or avoid relying solely on the exit code for success confirmation.
CVE-2026-35339: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
Description
The recursive mode (-R) of the chmod utility in uutils coreutils incorrectly handles exit codes when processing multiple files. The final return value is determined solely by the success or failure of the last file processed. This allows the command to return an exit code of 0 (success) even if errors were encountered on previous files, such as 'Operation not permitted'. Scripts relying on these exit codes may proceed under a false sense of success while sensitive files remain with restrictive or incorrect permissions.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The recursive mode (-R) of the chmod utility in uutils coreutils does not correctly aggregate exit codes when processing multiple files. Instead of reflecting any errors encountered during the entire operation, it returns the exit code of only the last file processed. This incorrect check of function return values (CWE-253) can lead to false success indications, undermining the reliability of scripts and automation that depend on accurate exit codes for permission changes.
Potential Impact
Scripts and automated processes that rely on chmod's exit code to verify successful permission changes may proceed under a false assumption of success. This can result in sensitive files retaining restrictive or incorrect permissions, potentially causing security policy violations or operational issues. There is no indication of confidentiality or availability impact, but integrity of permission enforcement is affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should manually verify file permissions after recursive chmod operations or avoid relying solely on the exit code for success confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-04-02T12:58:56.086Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e8f7ce19fe3cd2cdd00c01
Added to database: 4/22/2026, 4:31:10 PM
Last enriched: 4/22/2026, 5:03:31 PM
Last updated: 4/23/2026, 1:07:25 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.