CVE-2023-38545: SOCKS5 heap buffer overflow

Update: https://curl.se/docs/CVE-2023-38545.html

This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake.

When curl is asked to pass along the hostname to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that hostname can be is 255 bytes.

If the hostname is detected to be longer than 255 bytes, curl switches to local name resolving and instead passes on the resolved address only to the proxy. Due to a bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long hostname to the target buffer instead of copying just the resolved address there.


https://github.com/curl/curl/discussions/12026

Filing this under admin instead of fdroiddata as it probably also affects our own infrastructure, and few apps.

Will run a scan for libcurl on repo/ soon. [Edit: done]


Infra

  • unattended-upgrades should handle most updates
    • fdroidstatus.org & staging.fdroidstatus.org
  • might need to restart some things using libcurl
  • @eighthave will run makebuildserver
  • container/CI images (?)

Apps

  • com.github.olga_yakovleva.rhvoice.android https://github.com/RHVoice/RHVoice/issues/799
  • com.karin.idTech4Amm Curl 7.11.1 is used, not affected
  • com.termux via (lib)curl packages, not an .so in the APK - package has been updated to 8.4.0
  • la.daube.photochiotte, update live (builds curl from source)
  • net.minetest.minetest Versions before 5.2.0 are not affected. 5.6.0 and above are affected, built with --disable-proxy
  • net.taler.wallet.fdroid
  • org.documentfoundation.libreoffice, update is live and uses latest versiosn
  • org.dolphinemu.dolphinemu Versions after 6f55e4 are affected, i.e. 5.0-19870, upstream patched, update is live
  • org.freeminer.freeminer Too old, not affected
  • org.musicpd Versions after 90184e are affected, i.e. 0.21.22 and above, built with --disable-proxy
  • org.supertuxkart.stk 1.3 and above are affected. Curl source is here, upstream issue
  • org.xbmc.kodi 19.4, 20.0-ALPHA1 and 20.2 are affected, upstream issue, update upstream pending a new release, update is live
  • org.xcsoar Versions after a98fff are affected, i.e. 6.8.16 and above, built with --disable-proxy

Other

  • packages like libvirt, cargo, etc. use libcurl
  • apt in Debian doesn't seem to use libcurl
Edited May 31, 2024 by Licaon_Kter
Assignee Loading
Time tracking Loading