Skip to content
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

fix(PeriphDrivers): MXC_SYS_GetUSN Checksum error #1050

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Conversation

EricB-ADI
Copy link
Contributor

@EricB-ADI EricB-ADI commented Jun 20, 2024

Pull Request Template

Description

For some MCUs, the MXC_SYS_GetUSN function used the AES peripheral to calculate the checksum.
#1016 Addresses an issue with the possibility of an unbounded memory access. The MXC_SYS_GetUSN function now only copies and clears the 13 bytes of the USN. However, the checksum is calculated using the USN checksum length not the USN length, so the CRC was calculated using the correct 13 bytes of the USN plus 3 uninitialized bytes causing checksum errors. This patch fixes this issue.

@github-actions github-actions bot added MAX32655 Related to the MAX32655 (ME17) MAX32670 Related to the MAX32670 (ME15) MAX32672 Related to the MAX32672 (ME21) MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) MAX32690 Related to the MAX32690 (ME18) BLE Related to Bluetooth MAX32662 Related to the MAX32662 (ME12) labels Jun 20, 2024
@EricB-ADI
Copy link
Contributor Author

/clang-format-run


/* Read the checksum from the info block */
/* Read the checksum from the inspfo block */
Copy link
Contributor

Choose a reason for hiding this comment

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

typo?

@EricB-ADI EricB-ADI merged commit a8938a5 into main Jun 24, 2024
3 checks passed
sihyung-maxim pushed a commit to analogdevicesinc/hal_adi that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Related to Bluetooth MAX32655 Related to the MAX32655 (ME17) MAX32662 Related to the MAX32662 (ME12) MAX32670 Related to the MAX32670 (ME15) MAX32672 Related to the MAX32672 (ME21) MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) MAX32690 Related to the MAX32690 (ME18)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants