Skip to content

Commit

Permalink
[mac] validate received ack frame PSDU in ProcessEnhAckSecurity() (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink authored Oct 31, 2023
1 parent 7074a43 commit c6ffe1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/mac/mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,8 @@ Error Mac::ProcessEnhAckSecurity(TxFrame &aTxFrame, RxFrame &aAckFrame)
VerifyOrExit(aAckFrame.GetSecurityEnabled(), error = kErrorNone);
VerifyOrExit(aAckFrame.IsVersion2015());

SuccessOrExit(aAckFrame.ValidatePsdu());

IgnoreError(aAckFrame.GetSecurityLevel(securityLevel));
VerifyOrExit(securityLevel == Frame::kSecurityEncMic32);

Expand Down

0 comments on commit c6ffe1a

Please sign in to comment.