diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-04-27 11:43:00 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-29 09:55:31 +0100 |
| commit | df2436ba971feb5c312e0d2d657c65ce49241329 (patch) | |
| tree | b277c78b8a289603a1de3efbb85156cb0d72840d /meta | |
| parent | 8ad06a02ae6c8f4cc0d4fdc11722b60daf9cdd3a (diff) | |
| download | poky-df2436ba971feb5c312e0d2d657c65ce49241329.tar.gz | |
linux/cve-exclusion: correct fixed-version calculation
Current code takes the first version found as "fixed-version".
That is not correct as it is almost always only the oldest backport.
Fix it by unconditionally shift the assigmnet of variable "fixed" so
that we take last instead of first version.
Cc: daniel.turull@ericsson.com
(From OE-Core rev: 68f8e58a249c8adef18e63f0841e8bfea16f354e)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rwxr-xr-x | meta/recipes-kernel/linux/generate-cve-exclusions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/generate-cve-exclusions.py b/meta/recipes-kernel/linux/generate-cve-exclusions.py index 82fb4264e3..5c85c0db88 100755 --- a/meta/recipes-kernel/linux/generate-cve-exclusions.py +++ b/meta/recipes-kernel/linux/generate-cve-exclusions.py | |||
| @@ -67,10 +67,9 @@ def get_fixed_versions(cve_info, base_version): | |||
| 67 | 67 | ||
| 68 | if not first_affected: | 68 | if not first_affected: |
| 69 | first_affected = v | 69 | first_affected = v |
| 70 | fixed = less_than | 70 | fixed = less_than |
| 71 | if base_version < v and v < next_version: | 71 | if base_version < v and v < next_version: |
| 72 | first_affected = v | 72 | first_affected = v |
| 73 | fixed = less_than | ||
| 74 | fixed_backport = less_than | 73 | fixed_backport = less_than |
| 75 | 74 | ||
| 76 | return first_affected, fixed, fixed_backport | 75 | return first_affected, fixed, fixed_backport |
