Linux
netfilter: ebtables: zero chainstack array
In the Linux kernel, the following vulnerability has been resolved: netfilter: ebtables: zero chainstack array sashiko reports: looking at ebtables table translation, could a sparse cpu_possible_mask lead to an uninitialized pointer free? If cpu_possible_mask is sparse (for example, CPU 0 and CPU 2 are possible, but CPU 1 is not), the allocation loop skips CPU 1. If vmalloc_node() fails at CPU 2, the cleanup loop will blindly decrement and call vfree() on newinfo->chainstack[1]. Not a real-world bug, such allocation isn't expected to fail in the first place.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2ade612967e2cdfb9290ebcb773f302c82f311fa
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 42bef500d07b5769d916e9122a3e3fa3fd2245ef
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fc7f105451044501a50cfd530cfa3b472c54acbc
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9e6c5169db423e51dcc66a73fd15409c0d38e088
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 29bf41a9b59aff9f6197df58641a00037d567ca8
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9f74d28e903fa4fdf82f870d0aeadddc8196e41c
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5ee856e4208acafaaaf7b84824d39b78c21345d6
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cbfe53599eebffd188938ab6774cc41794f6f9d5
Fixed in 2ade612967e2cdfb9290ebcb773f302c82f311fa, 42bef500d07b5769d916e9122a3e3fa3fd2245ef, fc7f105451044501a50cfd530cfa3b472c54acbc, 9e6c5169db423e51dcc66a73fd15409c0d38e088, 29bf41a9b59aff9f6197df58641a00037d567ca8, 9f74d28e903fa4fdf82f870d0aeadddc8196e41c, 5ee856e4208acafaaaf7b84824d39b78c21345d6, cbfe53599eebffd188938ab6774cc41794f6f9d5
- 2.6.12
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 2ade612967e2cdfb9290ebcb773f302c82f311fa or 42bef500d07b5769d916e9122a3e3fa3fd2245ef or fc7f105451044501a50cfd530cfa3b472c54acbc or 9e6c5169db423e51dcc66a73fd15409c0d38e088 or 29bf41a9b59aff9f6197df58641a00037d567ca8 or 9f74d28e903fa4fdf82f870d0aeadddc8196e41c or 5ee856e4208acafaaaf7b84824d39b78c21345d6 or cbfe53599eebffd188938ab6774cc41794f6f9d5 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.39 or 7.1.4 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.