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

Fix multiple cves #31437

Closed
wants to merge 9 commits into from
Closed

Fix multiple cves #31437

wants to merge 9 commits into from

Conversation

andir
Copy link
Member

@andir andir commented Nov 9, 2017

Motivation for this change

I created a new tool to generate a list of packages affected by CVEs and started working through the list for the unstable channel.
This is just the ones that seemed fixable and where proper upstream commits/patches could be found.
The complete list from my WIP tool can be found here.

Some of the commits might be worth backporting to stable.

  • e8a3ce0 busybox
  • 0b4e8b9 libexif
  • f8b53a7 redis
  • 4b759a0 rzip
  • e15d6e1 yara (minor version bump)
  • 8312eaf radare2 (minor version bump + patch)

I am not so sure about the others since they might involve bumping versions. Is that something we do for an already released stable version?

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@vcunat
Copy link
Member

vcunat commented Nov 9, 2017

Yet another tool to list CVEs for our packages :-)

@andir
Copy link
Member Author

andir commented Nov 9, 2017

Not just CVEs, also "upstream" version changes from e.g. release-monitoring.org... :-)

@vcunat
Copy link
Member

vcunat commented Nov 9, 2017

That reminds me of https://github.com/Phreedom/nixpkgs-monitor

@copumpkin
Copy link
Member

cc @NixOS/security-notifications on both the specific fixes and the tool


src = fetchFromGitHub {
owner = "Thomas-Tsai";
repo = "partclone";
rev = version;
sha256 = "0gw47pchqshhm00yf34qgxh6bh2jfryv0sm7ghwn77bv5gzwr481";
sha256 = "1gw47pchqshhm00yf34qgxh6bh2jfryv0sm7ghwn77bv5gzwr481";
Copy link
Contributor

Choose a reason for hiding this comment

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

This sha256 is invalid, it should be 0bv15i0gxym4dv48rgaavh8p94waryn1l6viis6qh5zm9cd08skg.

@vcunat vcunat added the 9.needs: port to stable A PR needs a backport to the stable release. label Nov 11, 2017
Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

OK, with some additional changes.

sha256 = "0jcjlx9ksdvxvjyxmyzscx9ar9992iy5icw0sc3n0p09qi4d6x1r";
})
];

Copy link
Member

Choose a reason for hiding this comment

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

For non-generated patches it seems better to use fetchurl, but let's keep this as it is.

vcunat added a commit that referenced this pull request Nov 11, 2017
@vcunat
Copy link
Member

vcunat commented Nov 11, 2017

Merged as cbfb586 with some changes in 6255e95, ac677c7 and 73bec97.

For partclone I could find no reasonable news/announcement (it at least has no reverse dependencies in nixpkgs); the rest seems safe for cherry-picking to me.

@vcunat vcunat closed this Nov 11, 2017
@andir andir deleted the fix-multiple-cves branch November 11, 2017 20:11
@fpletz
Copy link
Member

fpletz commented Nov 14, 2017

Thank you for working on and merging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants