CVE-2026-35340: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities to return an incorrect exit code during recursive operations. The final exit code is determined only by the last file processed. If the last operation succeeds, the command returns 0 even if earlier ownership or group changes failed due to permission errors. This can lead to security misconfigurations where administrative scripts incorrectly assume that ownership has been successfully transferred across a directory tree.
AI Analysis
Technical Summary
The vulnerability in Uutils coreutils affects the ChownExecutor component used by the chown and chgrp commands. When performing recursive operations, the utilities determine the final exit code solely based on the last file processed. If the last operation succeeds but earlier ones fail due to permission errors, the command still returns a success exit code (0). This incorrect check of function return values (CWE-253) can cause administrative scripts to incorrectly conclude that ownership or group changes were fully successful across directory trees.
Potential Impact
The impact is that administrative or automation scripts relying on the exit code of uutils coreutils chown or chgrp commands may incorrectly assume that all ownership or group changes were successful. This can lead to security misconfigurations where files or directories retain incorrect ownership or group settings, potentially exposing sensitive data or causing privilege issues. There is no direct confidentiality or availability impact reported, but the integrity of ownership settings 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 ownership changes after recursive chown or chgrp operations or use alternative tools that correctly report errors. Scripts should not rely solely on the exit code of these commands for recursive operations.
CVE-2026-35340: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
Description
A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities to return an incorrect exit code during recursive operations. The final exit code is determined only by the last file processed. If the last operation succeeds, the command returns 0 even if earlier ownership or group changes failed due to permission errors. This can lead to security misconfigurations where administrative scripts incorrectly assume that ownership has been successfully transferred across a directory tree.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Uutils coreutils affects the ChownExecutor component used by the chown and chgrp commands. When performing recursive operations, the utilities determine the final exit code solely based on the last file processed. If the last operation succeeds but earlier ones fail due to permission errors, the command still returns a success exit code (0). This incorrect check of function return values (CWE-253) can cause administrative scripts to incorrectly conclude that ownership or group changes were fully successful across directory trees.
Potential Impact
The impact is that administrative or automation scripts relying on the exit code of uutils coreutils chown or chgrp commands may incorrectly assume that all ownership or group changes were successful. This can lead to security misconfigurations where files or directories retain incorrect ownership or group settings, potentially exposing sensitive data or causing privilege issues. There is no direct confidentiality or availability impact reported, but the integrity of ownership settings 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 ownership changes after recursive chown or chgrp operations or use alternative tools that correctly report errors. Scripts should not rely solely on the exit code of these commands for recursive operations.
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: 69e8f7ce19fe3cd2cdd00c05
Added to database: 4/22/2026, 4:31:10 PM
Last enriched: 4/22/2026, 5:03:24 PM
Last updated: 4/23/2026, 1:05:36 AM
Views: 6
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.