In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: Fix potential data-race in _nftobjtypeget()
nftunregisterobj() can concurrent with __nftobjtype_get(), and there is not any protection when iterate over nftablesobjects list in _nftobjtypeget(). Therefore, there is potential data-race of nftablesobjects list entry.
Use listforeachentryrcu() to iterate over nftablesobjects list in __nftobjtypeget(), and use rcureadlock() in the caller nftobjtypeget() to protect the entire type query process.