Skip to content

ncurses: 6.3 -> 6.3-p20220507 - #172734

Merged
trofi merged 1 commit into
NixOS:stagingfrom
trofi:update-ncurses-for-CVE-2022-29458
May 23, 2022
Merged

trofi merged 1 commit into
NixOS:stagingfrom
trofi:update-ncurses-for-CVE-2022-29458

Conversation

@trofi

@trofi trofi commented May 12, 2022 •

Copy link
Copy Markdown
Contributor

The main reason to pick intermediate patchset is to pull upstream
fix for CVE-2022-29458.

Changes: https://github.com/mirror/ncurses/blob/master/NEWS (since 6.3 release)

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

The main reason to pick intermediate patchset is to pull upstream
fix for CVE-2022-29458.

Changes: https://github.com/mirror/ncurses/blob/master/NEWS (since 6.3 release)
@trofi
trofi marked this pull request as draft May 12, 2022 18:22
@trofi

trofi commented May 12, 2022

Copy link
Copy Markdown
Contributor Author

I'll keep it as a draft while I'm building a few ncurses reverse dependencies locally.

@ofborg ofborg Bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels May 12, 2022
@trofi

trofi commented May 13, 2022

Copy link
Copy Markdown
Contributor Author

Build-tested on revdeps: R _2048-in-terminal aalib abook aerc aewan alacritty almonds alpine alsa-oss alsa-utils alsaOss alsaUtils amdvlk antimony apt-dater asciiquarium aspell asterisk asterisk-lts asterisk-stable asterisk_16 asterisk_18 asterisk_19 asuka asymptote atop aumix bacula bastet bb bc bemenu ber_metaocaml bitwise bklk bluez-alsa bmon bochs braincurses bro brogue bsdgames btdu burp bvi bviplus bwm_ng bzflag calc calcurse canto-curses cataclysm-dda cataclysm-dda-git catgirl cava cbftp cbonsai ccze cdecl cdk centerim cgdb cgminer chez chez-racket cht-sh clamav clasp-common-lisp clex clisp clisp-tip cmakeCurses cmakeWithGui cmatrix cmus coccinelle collapseos-cvm conky connman-ncurses conspy coq coq_8_10 coq_8_11 coq_8_12 coq_8_13 coq_8_14 coq_8_15 coq_8_5 coq_8_6 coq_8_7 coq_8_8 coq_8_9 coz cpcfs cpu-x cpustat crawl crawlTiles cscope ctodo curseofwar ddd delly devtodo dgsh dhex dialog diff-so-fancy dijo diod diskscan dit dnstop dozenal dropwatch drush duc dump dump1090 dune_1 dvtm dvtm-unstable ecasound edit eli elinks elvis emacs emacs-nox emacs28 emacs28-nox emacs28NativeComp emacsNativeComp entr epic5 erlang erlangR21 erlangR22 erlangR23 erlangR24 erlang_javac erlang_nox erlang_odbc erlang_odbc_javac ettercap eventstat extract_url factor-lang fbterm fdupes fish fnc foot framac freesweep freeswitch freetalk frotz fte ftop fzf galaxis gcal gdb gfs2-utils gftp ghc gildas git-branchless git-quick-stats global glom glusterfs gmu gnatcoll-python3 gnu-cobol gnuapl gnudatalanguage gnunet goaccess gopher got gpg-mdp gpm-ncurses gpsd gptfdisk gradle gradle_4 gradle_5 gradle_6 gradle_7 grails grub2 grub2_efi grub2_full grub2_light grub2_xen grv gtdialog gtypist guile-ncurses hackertyper hamlib hamlib_3 hamlib_4 hexcurse hexdino hexedit hobbes home-manager horst hstr ht htop htop-vim httping hunspell hwloc i7z icmake iftop imgcat inetutils io iotop-c ipbt iptraf-ng iptstate irqbalance irssi ispell java-service-wrapper jesec-rtorrent jnettop jove jp2a jupp kconfig-frontends kermit kitty kodi kodi-gbm kodi-wayland kodiGBM kodiPlain kodiPlainWayland lagrange-tui latencytop lc3tools lcdproc ldapvi less libapparmor libbde libcaca libcdio libedit liberal-crime-squad libgnt libguestfs libguestfs-with-appliance libllvm liboping libpeas libpseudo libreoffice-fresh-unwrapped libreoffice-still-unwrapped libreoffice-unwrapped libtermkey libtorrent-rasterbar libtorrent-rasterbar-1_1_x libtorrent-rasterbar-1_2_x libtorrent-rasterbar-2_0_x libtorrentRasterbar libtorrentRasterbar-1_1_x libtorrentRasterbar-1_2_x libtorrentRasterbar-2_0_x libtoxcore libtoxcore-new libtoxcore_0_1 libtoxcore_0_2 libviper libvlc libvterm libxml2 libxslt lifelines lldb lldb_10 lldb_11 lldb_12 lldb_13 lldb_14 lldb_5 lldb_6 lldb_7 lldb_8 lldb_9 llvm llvm_10 llvm_11 llvm_12 llvm_13 llvm_14 llvm_5 llvm_6 llvm_7 llvm_8 llvm_9 lnav logtop loksh lsof lukesmithxyz-st lumail lv lynx magic-vlsi mailutils mariadb mariadb-client mariadb_104 mariadb_105 mariadb_106 mariadb_107 mariadb_108 maude mcabber mcaimi-st mdp megam mepo mepo-x11 mg midimonster mikmod minetest minetestclient minetestclient_5 minetestserver minetestserver_5 minicom mitscheme mitschemeX11 mmh moc moe mono mono4 mono5 mono6 moon-buggy mosh most mp3blaster mp3info mpw mtm mtr mtr-gui multitail multitextor musikcube mutt mutt-with-sidebar mysql mysql-client mysql-shell mysql57 mysql80 mythes n2048 nano ncdc ncdu ncdu_2 ncftp ncgopher ncmpc ncmpcpp ncpamixer ncspot ncurses ncurses6 ne neo neomutt neovim-unwrapped nethack nethack-qt nethack-x11 nethogs netproc netris netsniff-ng neuron neuron-full neuron-mpi newsboat nfstrace nghttp3 ngtcp2 ninvaders nix-top nload nmon nnn noice notcurses notmuch-bower npush nudoku numatop nvi nvimpager nvtop-amd nwipe nzbget ocaml-top octave octaveFull omake opa opam opam_1_2 opencbm openipmi orca-c p2pvc pacvim pagemon pamix percona-server percona-server56 percona-xtrabackup percona-xtrabackup_2_4 percona-xtrabackup_8_0 pg_top pick pidgin pinentry pinentry-curses pinentry-emacs pinentry-gnome pinentry-gtk2 pinentry-qt pinentry_curses pinentry_emacs pinentry_gnome pinentry_gtk2 pinentry_qt pinentry_qt5 pinfo pipes pipewire pltScheme polygraph powertop procps profanity programmer-calculator progress prooftree proot proxmark3 proxmark3-unstable psmisc pspg putty pynac pyotherside pypy pypy2 pypy27 pypy3 pypy37 pypy38 python python2 python27 python27Full python2Full python3 python310 python311 python37 python37Full python38 python38Full python39 python39Full python3Full pythonFull qemu qemu_full qemu_kvm qnial qodem racket racket-minimal radeontop rc readline readline6 readline63 readline70 readline81 regina retdec retdec-full rink ripasso-cursive robotfindskitten rote rtorrent ruby ruby_2_7 ruby_3_0 ruby_3_1 rxvt-unicode-unwrapped rxvt-unicode-unwrapped-emoji rxvt_unicode s9fes sacc samba samba4 samba4Full sambaFull samtools saw-tools sc-im screen screenfetch sdl-jstest sealcurses semantik seren sfeed shunit2 siduck76-st sil silc_client singular sipp ski sl slang slrn slurm slurm-llnl smemstat smenu snapper sngrep soapysdr soapysdr-with-plugins softether somatic-sniper sooperlooper souffle spdk speech-tools spigot splat sqlcipher sqlite-interactive sssd st stag statserial stfl stumpish swaglyrics swift syncterm sysdig taizen taoup tcptrack tcsh teapot tecoc telescope termite termite-unwrapped termtekst terra testdisk testdisk-qt tetex texinfo4 texinfo413 texinfoInteractive textadept textadept11 thc-hydra tig timidity tinc_pre tinyfugue tiptop tmate tmatrix tmux torrent7z toxic trafficserver translate-shell tty-clock tty-solitaire ttyplot tudu twa tweak typespeed udftools uim umr unibilium unison unit unnethack unvanquished urbit urlview util-linux util-linuxCurses utillinux varnish varnish60 varnish71 vbindiff verilog vifm vifm-full vim vimHugeX vim_configurable vimpc vis viw vk-cli vlc vms-empire vnstat volume_key vte_290 vwm w3m w3m-batch w3m-full w3m-nographics w3m-nox waon wavemon weechat-unwrapped wezterm wiggle wiimms-iso-tools wiki-tui wine64 wml woeusb wordgrinder wtf wyrd xawtv xcd xf86_input_wacom xfsdump xine-lib xine-ui xineLib xineUI xjobs xrestop xst xstow xterm xv xwiimote xxv yabasic yaft yash yersinia ytalk ytree zeek zesarux zile zsh zsh-fzf-tab

Vast majority builds fine. a few do fail, but the failures are not caused by ncurses update.

Also tested on mutt and mc. Both behave as expected.

Reay to review.

@trofi
trofi marked this pull request as ready for review May 13, 2022 22:02
@Mindavi Mindavi added the 1.severity: security Issues which raise a security issue, or PRs that fix one label May 16, 2022

@ivan ivan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I rebuilt my x86_64 NixOS 22.05 machines with this PR and did not encounter issues using htop. I skimmed the ncurses diff and didn't see anything unusual. I confirmed that convert_strings was changed.

@trofi

trofi commented May 23, 2022

Copy link
Copy Markdown
Contributor Author

Let's merge it into staging.

@trofi
trofi merged commit 5aec8b7 into NixOS:staging May 23, 2022
@trofi trofi added the 9.needs: port to stable A PR needs a backport to the stable release. label May 23, 2022
@trofi
trofi deleted the update-ncurses-for-CVE-2022-29458 branch May 23, 2022 20:26
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR #174186 for staging-22.05.

@philiptaron philiptaron mentioned this pull request Jan 6, 2026
4 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 9.needs: port to stable A PR needs a backport to the stable release. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants