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

lynx: add patch for CVE-2021-38165 #133057

Merged
merged 1 commit into from
Aug 7, 2021

Conversation

MatthewCroughan
Copy link
Contributor

@MatthewCroughan MatthewCroughan commented Aug 7, 2021

Co-authored-by: nixinator 33lockdown33@protonmail.com
Co-authored-by: John Bargman darthpjb@gmail.com

Motivation for this change

Fixes the security vulnerability in Lynx that resulted in this meltdown on the mailing list. Code was audited by @DarthPJB

https://lists.nongnu.org/archive/html/lynx-dev/2021-08/msg00007.html

Patch Source: https://git.alpinelinux.org/aports/tree/main/lynx/CVE-2021-38165.patch

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 packages 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/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@mweinelt
Copy link
Member

mweinelt commented Aug 7, 2021

lists.nongnu.org/archive/html/lynx-dev/2021-08/msg00007.html

Referencing the mail with the patch you didn't use is confusing. Please add the correct reference.

@@ -22,6 +23,14 @@ stdenv.mkDerivation rec {

hardeningEnable = [ "pie" ];

patches = [
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
patches = [
patches = [

@mweinelt
Copy link
Member

mweinelt commented Aug 7, 2021

You seem to have added unrelated commits.

Co-authored-by: nixinator <33lockdown33@protonmail.com>
Co-authored-by: John Bargman <darthpjb@gmail.com>
Co-authored-by: Martin Weinelt <hexa@darmstadt.ccc.de>
@MatthewCroughan
Copy link
Contributor Author

MatthewCroughan commented Aug 7, 2021

I have rebased with the suggested changes so far and added co-authorship to @mweinelt. Thanks for the guidance! I now know how to use fetchpatch.

@mweinelt
Copy link
Member

mweinelt commented Aug 7, 2021

@ofborg build lynx

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2021

Successfully created backport PR #133065 for release-21.05.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2021

The process '/usr/bin/git' failed with exit code 1

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.

3 participants