Commit a27f149
committed
netfilter: ipset: add missing range check in bitmap_ip_uadt
jira VULN-46556
cve CVE-2024-53141
commit-author Jeongjun Park <[email protected]>
commit 35f56c5
When tb[IPSET_ATTR_IP_TO] is not present but tb[IPSET_ATTR_CIDR] exists,
the values of ip and ip_to are slightly swapped. Therefore, the range check
for ip should be done later, but this part is missing and it seems that the
vulnerability occurs.
So we should add missing range checks and remove unnecessary range checks.
Cc: <[email protected]>
Reported-by: [email protected]
Fixes: 72205fc ("netfilter: ipset: bitmap:ip set type support")
Signed-off-by: Jeongjun Park <[email protected]>
Acked-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
(cherry picked from commit 35f56c5)
Signed-off-by: Anmol Jain <[email protected]>1 parent ca6837f commit a27f149
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
178 | 175 | | |
179 | 176 | | |
180 | 177 | | |
181 | | - | |
| 178 | + | |
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
| |||
0 commit comments