Skip to content

[Coverity CID: 525075] Out-of-bounds read in drivers/usb_c/tcpc/fusb307.c #90722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zephyrbot opened this issue May 28, 2025 · 0 comments
Open
Assignees
Labels
area: USB-C bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: high High impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/18b14e7a2c309679fd7c69e9d953cfe83376754e/drivers/usb_c/tcpc/fusb307.c

Category: Memory - illegal accesses
Function: fusb307_init_work_cb
Component: Drivers
CID: 525075

Details:

ret = tcpci_tcpm_get_status_register(&cfg->bus, TCPC_POWER_STATUS, (uint16_t *)&power_reg);

Please fix or provide comments in coverity using the link:

https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=525075

For more information about the violation, check the Coverity Reference. (CWE-125)

Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the MAINTAINERS file.

@zephyrbot zephyrbot added bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug Coverity A Coverity detected issue or its fix area: USB-C labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB-C bug The issue is a bug, or the PR is fixing a bug Coverity A Coverity detected issue or its fix priority: high High impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants