Commit 31bfc29
fix(spdmlib/session): clear backup flags and transcript hashes on reset
Extend `SpdmSession::set_default()` to also reset
`responder_backup_valid`, `requester_backup_valid`, `th1`, and `th2`.
Without these resets, a session struct that is recycled after teardown
or reset retains values from the previous connection. An attacker
could leverage this leakage to manipulate key updates or poison
transcript hashes in future SPDM sessions.
Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>1 parent d5cedbf commit 31bfc29
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
| |||
0 commit comments