Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump GO_BUILD_VER from v0.88 to v0.89 to move go from 1.21.9 to 1.21.… #8976

Merged

Conversation

paulgmiller
Copy link

@paulgmiller paulgmiller commented Jul 3, 2024

…11 to fix cve https://avd.aquasec.com/nvd/cve-2024-24790

Description

Trivy detects a cve.

trivy i --severity=HIGH,CRITICAL docker.io/calico/typha:v3.26.4

┌─────────┬────────────────┬──────────┬────────┬───────────────────┬─────────────────┬────────────────────────────────────────────────────────────┐
│ Library │ Vulnerability  │ Severity │ Status │ Installed Version │  Fixed Version  │                           Title                            │
├─────────┼────────────────┼──────────┼────────┼───────────────────┼─────────────────┼────────────────────────────────────────────────────────────┤
│ stdlib  │ CVE-2024-24790 │ CRITICAL │ fixed  │ 1.21.4            │ 1.21.11, 1.22.4 │ golang: net/netip: Unexpected behavior from Is methods for │
│         │                │          │        │                   │                 │ IPv4-mapped IPv6 addresses                                 │
│         │                │          │        │                   │                 │ https://avd.aquasec.com/nvd/cve-2024-24790                 │
│         ├────────────────┼──────────┤        │                   ├─────────────────┼────────────────────────────────────────────────────────────┤
│         │ CVE-2023-45288 │ HIGH     │        │                   │ 1.21.9, 1.22.2  │ golang: net/http, x/net/http2: unlimited number of         │
│         │                │          │        │                   │                 │ CONTINUATION frames causes DoS                             │
│         │                │          │        │                   │                 │ https://avd.aquasec.com/nvd/cve-2023-45288                 │
└─────────┴────────────────┴──────────┴────────┴───────────────────┴─────────────────┴────────────────────────────────────────────────────────────┘

Related issues/PRs

fixes #8974

another CVE PR is #8975

Todos

  • Tests
  • Documentation
  • Release note

Release Note

TBD

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@paulgmiller paulgmiller requested a review from a team as a code owner July 3, 2024 21:19
@marvin-tigera marvin-tigera added this to the Calico v3.26.5 milestone Jul 3, 2024
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Jul 3, 2024
@Behnam-Shobiri
Copy link
Contributor

Thank you @paulgmiller
Can you please update UBI to 8.10 as well?

@Behnam-Shobiri
Copy link
Contributor

/sem-approve

@paulgmiller
Copy link
Author

@Behnam-Shobiri bumped.

@Behnam-Shobiri
Copy link
Contributor

/sem-approve

@hjiawei
Copy link
Contributor

hjiawei commented Jul 5, 2024

Felix/node build failed due to a clang version mismatch issue. We updated clang from v12 to v15 in calico/go-build:v0.89. @Behnam-Shobiri is v0.88 branch still active? Maybe it is easier to update golang in v0.88 branch?

@paulgmiller
Copy link
Author

paulgmiller commented Jul 18, 2024

No way to build calico 3.26 with clang v15? Maybe by cherry picking dc848fc

Or is clang v15 too big a change to pull back as a patch.

@hjiawei
Copy link
Contributor

hjiawei commented Jul 18, 2024

No way to build calico 3.26 with clang v15? Maybe by cherry picking dc848fc

Sure. If that still doesn't work, you can ping me to get v0.88 go-build golang version align with v0.89.

@paulgmiller
Copy link
Author

@hjiawei got it to build node to but I did have to suppressed a variable unused error in tc.c (did it by debg logging it) but maybe there's a clang directive that would be better

See fdea96d6d1f39aef36a2cef433ef72d0684a9c5c in my change or just look carefully at tc.c and let me know if thats better.

Likely update .88 with the go patch is safer but I don't know how to help there so thought I'd try this.

felix/bpf-gpl/tc.c Outdated Show resolved Hide resolved
@hjiawei
Copy link
Contributor

hjiawei commented Jul 19, 2024

/sem-approve

@hjiawei
Copy link
Contributor

hjiawei commented Jul 19, 2024

@paulgmiller The build is green finally...

Copy link
Contributor

@coutinhop coutinhop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @paulgmiller!

@coutinhop coutinhop merged commit 3ac53fa into projectcalico:release-v3.26 Jul 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants