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

qemu: apply patch for CVE-2020-27617 #102481

Merged
merged 1 commit into from Nov 9, 2020
Merged

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Nov 2, 2020

Motivation for this change

https://www.openwall.com/lists/oss-security/2020/11/02/1

An assert(3) failure issue was found in the networking helper functions of QEMU. It could occur in the eth_get_gso_type() routine, if a packet does not have a valid networking L3 protocol (ex. IPv4, IPv6) value. A guest user may use this flaw to crash the QEMU process on the host resulting in DoS scenario.

Fixes: CVE-2020-27617

FWIW: I couldn't find the patch in the qemu git tree, but instead pulled it from https://patchew.org/QEMU/20201021060550.1652896-1-ppandit@redhat.com/. The qemu net subsystem maintainer Jason Wang stated that he applied the patch as is in https://lists.nongnu.org/archive/html/qemu-devel/2020-10/msg07341.html.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

An assert(3) failure issue was found in the networking helper functions of QEMU. It could occur in the eth_get_gso_type() routine, if a packet does not have a valid networking L3 protocol (ex. IPv4, IPv6) value. A guest user may use this flaw to crash the QEMU process on the host resulting in DoS scenario.

Fixes: CVE-2020-27617
@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 102481 run on x86_64-linux 1

1 package built:
  • qemu

@Ma27 Ma27 merged commit 5095791 into NixOS:master Nov 9, 2020
@Ma27
Copy link
Member

Ma27 commented Nov 9, 2020

@mweinelt would you like to take care of the backport or should I do that? :)

@mweinelt
Copy link
Member Author

mweinelt commented Nov 9, 2020

I can do it in an hour or so. So if you're faster, go for it!

@mweinelt mweinelt deleted the qemu/cve-2020-27617 branch November 9, 2020 22:53
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

3 participants