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

net_snmp: fix CVE-2018-18065 #48123

Merged
merged 1 commit into from Oct 10, 2018
Merged

net_snmp: fix CVE-2018-18065 #48123

merged 1 commit into from Oct 10, 2018

Conversation

andir
Copy link
Member

@andir andir commented Oct 9, 2018

Motivation for this change

This addresses a remote DoS attack (CVE-2018-18065).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: net_snmp

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: net_snmp

Partial log (click to expand)

gzipping man pages under /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/share/man/
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/lib  /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/bin  /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/sbin
patching script interpreter paths in /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3
/nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/bin/net-snmp-config: interpreter directive changed from "/bin/sh" to "/nix/store/nii7pk6pv4x4as7vsxbvwyzjn67vax6r-bash-4.4-p23/bin/sh"
/nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/bin/net-snmp-create-v3-user: interpreter directive changed from "/bin/sh" to "/nix/store/nii7pk6pv4x4as7vsxbvwyzjn67vax6r-bash-4.4-p23/bin/sh"
/nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/bin/mib2c-update: interpreter directive changed from "/bin/sh" to "/nix/store/nii7pk6pv4x4as7vsxbvwyzjn67vax6r-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3...
moving /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/sbin/* to /nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3/bin
/nix/store/vhp1bm7bb1zjcklj7sjhyqa0yb150y4i-net-snmp-5.7.3

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: net_snmp

Partial log (click to expand)

gzipping man pages under /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/share/man/
strip is /nix/store/428gs2z4b8f9byvghzlpbjwjb3a7jwxx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/lib  /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/bin  /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/sbin
patching script interpreter paths in /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3
/nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/bin/net-snmp-create-v3-user: interpreter directive changed from "/bin/sh" to "/nix/store/017xymp5i03qzigafnfx7sgf6602gmzq-bash-4.4-p23/bin/sh"
/nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/bin/net-snmp-config: interpreter directive changed from "/bin/sh" to "/nix/store/017xymp5i03qzigafnfx7sgf6602gmzq-bash-4.4-p23/bin/sh"
/nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/bin/mib2c-update: interpreter directive changed from "/bin/sh" to "/nix/store/017xymp5i03qzigafnfx7sgf6602gmzq-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3...
moving /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/sbin/* to /nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3/bin
/nix/store/39pkydwlzsgzb82ji8y4a7whq8l8xgig-net-snmp-5.7.3

@andir andir merged commit 020a3ff into NixOS:master Oct 10, 2018
@andir andir deleted the net_snmp branch October 10, 2018 19:05
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

2 participants