We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-56638

netfilter: nft_inner: incorrect percpu area handling under softirq



Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_inner: incorrect percpu area handling under softirq Softirq can interrupt ongoing packet from process context that is walking over the percpu area that contains inner header offsets. Disable bh and perform three checks before restoring the percpu inner header offsets to validate that the percpu area is valid for this skbuff: 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-stack copy and bh is enabled again. After inner header fetching, the on-stack copy is stored back to the percpu area.

Reserved 2024-12-27 | Published 2024-12-27 | Updated 2025-01-20 | Assigner Linux

Product status

Default status
unaffected

3a07327d10a09379315c844c63f27941f5081e0a before 53c7314208c865086d78b4e88da53bc33da0b603
affected

3a07327d10a09379315c844c63f27941f5081e0a before da5cc778e7bf78fe525bc90ec2043f41415c31d9
affected

3a07327d10a09379315c844c63f27941f5081e0a before 7b1d83da254be3bf054965c8f3b1ad976f460ae5
affected

Default status
affected

6.2
affected

Any version before 6.2
unaffected

6.6.66
unaffected

6.12.5
unaffected

6.13
unaffected

References

git.kernel.org/...c/53c7314208c865086d78b4e88da53bc33da0b603

git.kernel.org/...c/da5cc778e7bf78fe525bc90ec2043f41415c31d9

git.kernel.org/...c/7b1d83da254be3bf054965c8f3b1ad976f460ae5

cve.org (CVE-2024-56638)

nvd.nist.gov (CVE-2024-56638)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-56638

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.