Linux
netfilter: xt_hashlimit: validate hashtable supports XT_HASHLIMIT_RATE_MATCH
In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_hashlimit: validate hashtable supports XT_HASHLIMIT_RATE_MATCH The XT_HASHLIMIT_RATE_MATCH flag mode changes the semantics of the dsthash_ent structure which represents an entry in the hashtable. There is a union area which uses a different layout to express the rate match mode. Update .checkentry path to validate the XT_HASHLIMIT_RATE_MATCH mode flag is requested by two or more different rules that refer to the same hashtable. Otherwise, uninitialized access to the burst field in the union is possible. Reject the use of the XT_HASHLIMIT_RATE_MATCH mode flag if set on by revision less than 3 too.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bea74641e3786d51dcf1175527cc1781420961c9, < 402befce5854c195058cf4bab7c78ca286068a26
- >= bea74641e3786d51dcf1175527cc1781420961c9, < dee686b5e7f21180538ff719867702f411c8eb5c
- >= bea74641e3786d51dcf1175527cc1781420961c9, < f76ab783e7d8d33e33dd7dfa697297f70d57b0e8
- >= bea74641e3786d51dcf1175527cc1781420961c9, < 24683fea1f06bd3bd2707b99460e859bc6464c22
- >= bea74641e3786d51dcf1175527cc1781420961c9, < 32ec8d4aba2cf22e12bdc28df8c4bd833c195fc0
- >= bea74641e3786d51dcf1175527cc1781420961c9, < d186f77d18bdfb252d401ff992ca3001a6a65a0f
- >= bea74641e3786d51dcf1175527cc1781420961c9, < 06a76334243ccd875a981aa8bb46c0f931ef1e3b
- >= bea74641e3786d51dcf1175527cc1781420961c9, < 305b63e1402267459fdabb183af4527f6799eebf
Fixed in 402befce5854c195058cf4bab7c78ca286068a26, dee686b5e7f21180538ff719867702f411c8eb5c, f76ab783e7d8d33e33dd7dfa697297f70d57b0e8, 24683fea1f06bd3bd2707b99460e859bc6464c22, 32ec8d4aba2cf22e12bdc28df8c4bd833c195fc0, d186f77d18bdfb252d401ff992ca3001a6a65a0f, 06a76334243ccd875a981aa8bb46c0f931ef1e3b, 305b63e1402267459fdabb183af4527f6799eebf
- 4.14
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.151, 6.12.103, 6.18.44, 7.1.8, 7.2
Mitigation
Upgrade Linux to 402befce5854c195058cf4bab7c78ca286068a26 or dee686b5e7f21180538ff719867702f411c8eb5c or f76ab783e7d8d33e33dd7dfa697297f70d57b0e8 or 24683fea1f06bd3bd2707b99460e859bc6464c22 or 32ec8d4aba2cf22e12bdc28df8c4bd833c195fc0 or d186f77d18bdfb252d401ff992ca3001a6a65a0f or 06a76334243ccd875a981aa8bb46c0f931ef1e3b or 305b63e1402267459fdabb183af4527f6799eebf or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.151 or 6.12.103 or 6.18.44 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.