# CVE-2024-56638: netfilter: nft_inner: incorrect percpu area handling under softirq

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-12-27T15:02:40.796Z
- Modified: 2026-11-05T21:17:36.967Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3a07327d10a09379315c844c63f27941f5081e0a before 53c7314208c865086d78b4e88da53bc33da0b603; from 3a07327d10a09379315c844c63f27941f5081e0a before da5cc778e7bf78fe525bc90ec2043f41415c31d9; from 3a07327d10a09379315c844c63f27941f5081e0a before 7b1d83da254be3bf054965c8f3b1ad976f460ae5; 6.2 (not affected: before 6.2; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.2 before 6.6.66; from 6.7 before 6.12.5; 6.13

## References

- <https://git.kernel.org/stable/c/53c7314208c865086d78b4e88da53bc33da0b603> (patch)
- <https://git.kernel.org/stable/c/da5cc778e7bf78fe525bc90ec2043f41415c31d9> (patch)
- <https://git.kernel.org/stable/c/7b1d83da254be3bf054965c8f3b1ad976f460ae5> (patch)

## Sources

- CVE List: [CVE-2024-56638](https://www.cve.org/CVERecord?id=CVE-2024-56638), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2024-56638](https://nvd.nist.gov/vuln/detail/CVE-2024-56638), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2024-56638 · Whole record: https://cve.day/CVE-2024-56638.json · Rebuilt by cve.day 2026-11-25T22:58:50.495Z
