Backport: fix(bt/bluedroid): fixed potential OOB in AVRCP vendor command composition [CVE-2025-68474]#117
Merged
floitsch merged 1 commit intoMay 17, 2026
Conversation
…and composition Backport of upstream espressif/esp-idf commit 0b0b59f to fix CVE-2025-68474. (cherry picked from commit 0b0b59f) This commit is a verbatim cherry-pick from espressif/esp-idf using: git cherry-pick -x 0b0b59f Cherry-picked from commit 0b0b59f. Signed-off-by: dkgkdfg65 <219107372+dkgkdfg65@users.noreply.github.com>
Author
|
thanks. fyi there's an openvehicles/esp-idf PR for the same CVE at openvehicles#8 — they're on the 2019-era esp-idf tree so the file path is different ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backports espressif/esp-idf 0b0b59f (release/v5.3, 2025-10-09) for CVE-2025-68474 — replaces an
assert-based bounds check (compiled out in release builds) with a runtime guard that returns NULL when the buffer can't hold the vendor command. addsAVRC_MIN_VENDOR_CMD_LENdefine and NULL-check onp_msg.upstream commit: espressif@0b0b59f2e19c
CVE: https://nvd.nist.gov/vuln/detail/CVE-2025-68474
diff:
components/bt/host/bluedroid/stack/avrc/avrc_opt.c | +17 -6haven't run the full esp-idf test suite locally.