Skip to content

Refactor expression validation in nft_dynset.c#49

Closed
Mrcopytuo wants to merge 5 commits intoQQxiaoming:mainfrom
Mrcopytuo:patch-2
Closed

Refactor expression validation in nft_dynset.c#49
Mrcopytuo wants to merge 5 commits intoQQxiaoming:mainfrom
Mrcopytuo:patch-2

Conversation

@Mrcopytuo
Copy link
Copy Markdown

Background

Linux kernel’s netfilter nftables subsystem had a null pointer dereference vulnerability in nft_dynset_init() in net/netfilter/nft_dynset.c that could be triggered when dynset expressions provided by userspace did not match the corresponding set expression parameters. This may allow a local attacker with CAP_NET_ADMIN privileges to cause a denial-of-service (kernel crash). This is tracked as CVE-2023-6622.

Change Summary

  • In net/netfilter/nft_dynset.c, add explicit checks to ensure that when dynset expression lengths differ from set expression lengths, the logic bails out early with an error (-EINVAL), avoiding use of mismatched pointers.
  • Prevents potentially null or mismatched pointers from being dereferenced during init of dynset expressions.

References

  • Upstream commit: 3701cd390fd731ee7ae8b8006246c8db82c72bea
  • CVE: CVE-2023-6622

dependabot bot and others added 5 commits January 23, 2025 02:44
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 7 to 8.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](dawidd6/action-download-artifact@v7...v8)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…tions/dawidd6/action-download-artifact-8
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 8 to 9.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](dawidd6/action-download-artifact@v8...v9)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…tions/dawidd6/action-download-artifact-9
@QQxiaoming QQxiaoming force-pushed the main branch 3 times, most recently from 970e29e to 1a76280 Compare December 24, 2025 03:47
@QQxiaoming QQxiaoming closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants