Commit 0e7bebc
committed
Fix stack overflow caused by infinite recursion
If an EFI device path node has 0 length, loop will never terminate.
Resolves: bz#2459982
Resolves: CVE-2026-6862
Signed-off-by: Marta Lewandowska <mlewando@redhat.com>1 parent d7f5527 commit 0e7bebc
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
| 1125 | + | |
| 1126 | + | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments