[LTS 9.2] netfilter: CVE-2024-27397, CVE-2024-57947, CVE-2025-38120 #803
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[LTS 9.2]
CVE-2024-27397 VULN-7048
CVE-2024-57947 VULN-42212
CVE-2025-38120 VULN-71797
Commits
CVE-2024-27397
The fix for CVE-2024-27397 got "unlocked" after merging #668 where most of the prerequisites fell into place. A small prereq
netfilter: nft_set_rbtree: .deactivate fails if element has expiredwas pulled in to further reduce conflicts. The remaining modifications required are explained in theupstream-diffbelow.CVE-2024-57947 (+ CVE-2025-38120)
The prerequisite f04df57
netfilter: nft_set_pipapo: constify lookup fn args where possiblewasn't strictly necessary, but it's functionally neutral and it helped avoid petty conflicts when backporting the main fix 791a615netfilter: nf_set_pipapo: fix initial map fill. The follow-up ea77c39netfilter: nf_set_pipapo_avx2: fix initial map fillis actually a bugfix for CVE-2024-57947, but it has its own CVE-2025-38120 assigned so it was used in place ofcve-bftag.kABI check: passed
Boot test: passed
boot-test.log
Kselftests: passed
Reference
kselftests–ciqlts9_2–run1.log
kselftests–ciqlts9_2–run2.log
Patch
kselftests–ciqlts9_2-CVE-batch-16–run1.log
kselftests–ciqlts9_2-CVE-batch-16–run2.log
kselftests–ciqlts9_2-CVE-batch-16–run3.log
kselftests–ciqlts9_2-CVE-batch-16–run4.log
kselftests–ciqlts9_2-CVE-batch-16–run5.log
Comparison
The tests results for the reference and the patch are the same.