# GHSA-jr8j-2jhp-m67v: nftables binding to an already bound chain

> A local attacker can cause a denial of service in the Linux kernel by binding to an already bound nftables chain.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Sep 2022

## What is GHSA-jr8j-2jhp-m67v?

GHSA-jr8j-2jhp-m67v is a denial of service vulnerability in github.com/siderolabs/talos, published on 16 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

### Impact
An issue was discovered in net/netfilter/nf_tables_api.c in the Linux kernel. A denial of service can occur upon binding to an already bound chain.

Affected by this vulnerability is the function nft_verdict_init of the file net/netfilter/nf_tables_api.c. The manipulation with an unknown input leads to a denial of service vulnerability. The program does not release or incorrectly releases a resource before it is made available for re-use.

### Patches
The fix has been backported to [5.15.64](https://www.linuxkernelcves.com/cves/CVE-2022-39190) version of the upstream Linux kernel (5.15 is the upstream Kernel long term version Talos ships with). Talos >= v1.2.0 is shipped with Linux Kernel 5.15.64 fixing the above issue.

### Workarounds
It's recommended to upgrade

### References
- https://www.sesin.at/2022/09/02/cve-2022-39190-linux-kernel-up-to-5-19-5-nf_tables_api-c-nft_verdict_init-denial-of-service/
- https://nvd.nist.gov/vuln/detail/CVE-2022-39190

### For more information
- Email us at [security@siderolabs.com](mailto:security@siderolabs.com)

## Which versions are affected by GHSA-jr8j-2jhp-m67v?

2 open source packages ship an affected version, including github.com/siderolabs/talos.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/siderolabs/talos` | Go | All versions | 1.2.0 |
| `github.com/siderolabs/talos` | Go | All versions | 1.2.0 |

## How do I fix GHSA-jr8j-2jhp-m67v?

Upgrade github.com/siderolabs/talos to 1.2.0 or later.

## Is GHSA-jr8j-2jhp-m67v being exploited?

There is no known exploitation of GHSA-jr8j-2jhp-m67v in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-jr8j-2jhp-m67v and fix it if it is affected.

What it is: GHSA-jr8j-2jhp-m67v is a denial of service vulnerability in github.com/siderolabs/talos, published on 16 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-jr8j-2jhp-m67v in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/siderolabs/talos (Go): affected all versions; fixed in 1.2.0
- github.com/siderolabs/talos (Go): affected all versions; fixed in 1.2.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-jr8j-2jhp-m67v/ (Markdown: https://insights.sbomify.com/GHSA-jr8j-2jhp-m67v/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-jr8j-2jhp-m67v

---
From sbomify Insights: https://insights.sbomify.com/GHSA-jr8j-2jhp-m67v/
Summaries are generated and may contain mistakes; the official description above is the record.
