Skip to content

fix(host): Limit max endpoints in interface to 32#413

Merged
tore-espressif merged 1 commit intomasterfrom
fix/CVE-UNTRUST-002
Feb 20, 2026
Merged

fix(host): Limit max endpoints in interface to 32#413
tore-espressif merged 1 commit intomasterfrom
fix/CVE-UNTRUST-002

Conversation

@tore-espressif
Copy link
Collaborator

@tore-espressif tore-espressif commented Feb 18, 2026

fix(host): Limit max endpoints in interface to 32


Note

Medium Risk
Touches USB descriptor parsing used by interface claiming/allocation; while the change is small and guarded by tests, it can cause previously-accepted (but likely invalid) devices/descriptors to be rejected.

Overview
USB host descriptor parsing now rejects interface descriptors with more than 32 endpoints.

This introduces USB_MAX_ENDPOINTS_PER_INTERFACE (32) and updates usb_parse_interface_descriptor() to return NULL when bNumEndpoints exceeds that limit, with a new unit test covering the invalid-descriptor case; header comments are updated to document the new failure mode.

Written by Cursor Bugbot for commit c546816. This will update automatically on new commits. Configure here.

@tore-espressif tore-espressif added this to the usb_host 1.3.0 milestone Feb 18, 2026
@tore-espressif tore-espressif self-assigned this Feb 18, 2026
Base automatically changed from fix/USH-001 to master February 20, 2026 10:17
Copy link
Collaborator

@peter-marcisovsky peter-marcisovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tore-espressif tore-espressif merged commit 86c3638 into master Feb 20, 2026
25 checks passed
@tore-espressif tore-espressif deleted the fix/CVE-UNTRUST-002 branch February 20, 2026 11:56
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on March 20

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants