[LTS 9.2] netfilter: nf_tables: Reject tables of unsupported family #440
+27
−0
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-2023-6040
VULN-8164
Problem
https://www.openwall.com/lists/oss-security/2024/01/12/1
Applicability: yes
The
nf_tables
module is enabled in LTS 9.2:The fixing commit f1082dd is not present in the affected file's
net/netfilter/nf_tables_api.c
history forciqlts9_2
, nor was it backported.The bug can't be blamed on a single commit - there is no "fixes" commit indicated in f1082dd to check whether it exists in
ciqlts9_2
history or not. However, without replicating Ant Security Lab's analysis it can be reasonably assumed that the bug is present in LTS 9.2 based on the following arguments:ciqlts9_2
kernel 5.14 is vulnerable.ciqlts9_4
history of the files mentioned in CVE where the OOB can occur -net/netfilter/x_tables.c
andnet/netfilter/nf_log.c
- are exactly the same inciqlts9_2
:x_tables–history-comparison–mainline–ciqlts9_4–ciqlts9_2.txt
nf_log–history-comparison–mainline–ciqlts9_4–ciqlts9_2.txt
Solution
The mainline fix f1082dd applies to
ciqlts9_2
cleanly without any changes.kABI check: passed
Boot test: passed
boot-test.log
Kselftests: passed relative
Coverage
The patch is contained within the
netfilter
subsystem which has its dedicated test suite - all thenetfilter:*
tests were picked for testing.Reference
kselftests–ciqlts9_2–run1.log
kselftests–ciqlts9_2–run2.log
kselftests–ciqlts9_2–run3.log
kselftests–ciqlts9_2–run4.log
Patch
kselftests–ciqlts9_2-CVE-2023-6040–run1.log
kselftests–ciqlts9_2-CVE-2023-6040–run2.log
kselftests–ciqlts9_2-CVE-2023-6040–run3.log
kselftests–ciqlts9_2-CVE-2023-6040–run4.log
Comparison
The reference and patch tests results are the same
Specific tests: skipped