Entreprise d'experts en Sécurité Informatique : Audits et conseils en cybersécurité
Entreprise française de cybersécurité depuis 2004
☎ 03 60 47 09 81 - info@securiteinfo.com


CVE-2024-56638

Description

In the Linux kernel, the following vulnerability has been resolved:netfilter: nft_inner: incorrect percpu area handling under softirqSoftirq can interrupt ongoing packet from process context that iswalking over the percpu area that contains inner header offsets.Disable bh and perform three checks before restoring the percpu innerheader offsets to validate that the percpu area is valid for thisskbuff:1) If the NFT_PKTINFO_INNER_FULL flag is set on, then this skbuff has already been parsed before for inner header fetching to register.2) Validate that the percpu area refers to this skbuff using the skbuff pointer as a cookie. If there is a cookie mismatch, then this skbuff needs to be parsed again.3) Finally, validate if the percpu area refers to this tunnel type.Only after these three checks the percpu area is restored to a on-stackcopy and bh is enabled again.After inner header fetching, the on-stack copy is stored back to thepercpu area.

POC

Reference

No PoCs from references.

Github

- https://github.com/cku-heise/euvd-api-doc