Description
In the Linux kernel, the following vulnerability has been resolved: wifi: radiotap: reject radiotap with unknown bits The radiotap parser is currently only used with the radiotap namespace (not with vendor namespaces), but if the undefined field 18 is used, the alignment/size is unknown as well. In this case, iterator->_next_ns_data isn't initialized (it's only set for skipping vendor namespaces), and syzbot points out that we later compare against this uninitialized value. Fix this by moving the rejection of unknown radiotap fields down to after the in-namespace lookup, so it will really use iterator->_next_ns_data only for vendor namespaces, even in case undefined fields are present.
Product status
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before 6f80f6a60f5d87e5de5fb2732751fce799991c24
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before d1d1d3c50095928624a95b67a6d7ccc3a18f2215
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before 703fa979badbba83d31cd011606d060bfb8b0d1d
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before 129c8bb320a7cef692c78056ef8e89a2a12ba448
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before 2a60c588d5d39ad187628f58395c776a97fd4323
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before 2f8ceeba670610d66f77def32011f48de951d781
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before e664971759a0e5570b50c6592e58a7f97d55e992
33e5a2f776e331dc8a4379b6efb660d38f182d96 (git) before c854758abe0b8d86f9c43dc060ff56a0ee5b31e0
2.6.34
Any version before 2.6.34
5.10.253 (semver)
5.15.203 (semver)
6.1.167 (semver)
6.6.130 (semver)
6.12.77 (semver)
6.18.17 (semver)
6.19.7 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/6f80f6a60f5d87e5de5fb2732751fce799991c24
git.kernel.org/...c/d1d1d3c50095928624a95b67a6d7ccc3a18f2215
git.kernel.org/...c/703fa979badbba83d31cd011606d060bfb8b0d1d
git.kernel.org/...c/129c8bb320a7cef692c78056ef8e89a2a12ba448
git.kernel.org/...c/2a60c588d5d39ad187628f58395c776a97fd4323
git.kernel.org/...c/2f8ceeba670610d66f77def32011f48de951d781
git.kernel.org/...c/e664971759a0e5570b50c6592e58a7f97d55e992
git.kernel.org/...c/c854758abe0b8d86f9c43dc060ff56a0ee5b31e0