rtorrent icon indicating copy to clipboard operation
rtorrent copied to clipboard

Buffer overflow bug on Ubuntu 24.04

Open bibimagic opened this issue 1 year ago • 8 comments

hello,

after upgrading ubuntu to version 24.04, rtorrent crashes with a "Buffer Overflow" error. This seems to be due to increased security on the new version of Ubuntu. A similar problem has already occurred with the Opensuse distribution, as shown in the link: https://github.com/rakshasa/rtorrent/pull/1169.

How can I use rtorrent again with Ubuntu 24.04?

bibimagic avatar May 12 '24 16:05 bibimagic

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110

I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

fougner avatar May 14 '24 17:05 fougner

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110

I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

You are a life saver, my friend! I have upgraded my home server yo 24.04 and have had the same issue with Buffer Overflow error. Your patch solved it.

Thanks a lot!

HydeFromT70s avatar Jun 05 '24 15:06 HydeFromT70s

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110

I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

Absolutely saved me too. Many thanks.

nascentt avatar Jun 05 '24 18:06 nascentt

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110

I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

Thanks for your reply. rtorrent works perfectly with your patch. Does this version work with arm64 architecture?

Are arm64 systems affected by Ubuntu 24.04 buffer overflow detection?

bibimagic avatar Jun 15 '24 18:06 bibimagic

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110 I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

Thanks for your reply. rtorrent works perfectly with your patch. Does this version work with arm64 architecture?

Are arm64 systems affected by Ubuntu 24.04 buffer overflow detection?

Good point! The amd64 build only works for that architecture. arm64 seems affected as well (tested it on raspberry pi 4) so i created added arm64 build to the PPA as well:

https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110/+files/rtorrent_0.9.8-1build4~ppa1_arm64.deb

fougner avatar Jun 16 '24 07:06 fougner

Thanks a lot guy. You're the dude ! I'll do that right away.

bibimagic avatar Jun 16 '24 07:06 bibimagic

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110 I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

Thanks for your reply. rtorrent works perfectly with your patch. Does this version work with arm64 architecture? Are arm64 systems affected by Ubuntu 24.04 buffer overflow detection?

Good point! The amd64 build only works for that architecture. arm64 seems affected as well (tested it on raspberry pi 4) so i created added arm64 build to the PPA as well:

https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110/+files/rtorrent_0.9.8-1build4~ppa1_arm64.deb

Hi, is it possible to have the patch for arm v6 v7, thanks

xCrisso avatar Jun 30 '24 23:06 xCrisso

This bug is tracked at https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/2063110 I have created a PPA which patches rtorrent here https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110

Thanks for your reply. rtorrent works perfectly with your patch. Does this version work with arm64 architecture? Are arm64 systems affected by Ubuntu 24.04 buffer overflow detection?

Good point! The amd64 build only works for that architecture. arm64 seems affected as well (tested it on raspberry pi 4) so i created added arm64 build to the PPA as well: https://launchpad.net/~fougner/+archive/ubuntu/noble-fix-buffer-overflow-2063110/+files/rtorrent_0.9.8-1build4~ppa1_arm64.deb

Hi, is it possible to have the patch for arm v6 v7, thanks

I've now added armhf architecture to the PPA as well. I don't think v6 is officially supported in Ubuntu, and there are no other architectures for me to choose from, but hopefully armhf is enough for your usecase.

fougner avatar Jul 01 '24 07:07 fougner

I get buffer overflow even with your PPA on ubuntu 24.04.01

Abasz avatar Aug 30 '24 19:08 Abasz

I get buffer overflow even with your PPA on ubuntu 24.04.01

Are you sure the package got upgraded correctly? The fix is already in the official noble-proposed repo, you could try to just download the deb file from there and upgrade it manually.

Whats the output of apt-cache policy rtorrent after you added my repo?

fougner avatar Aug 31 '24 06:08 fougner

Are you sure the package got upgraded correctly?

You are right, probably it did not (though I tried to remove, re add, reinstall etc...). Though it said that it did. Not sure what was wrong. What helped is that I cloned the underlying noble repo with the source code and compiled and installed.

Abasz avatar Aug 31 '24 08:08 Abasz

Closing as a fix is already merged.

rakshasa avatar Aug 31 '24 11:08 rakshasa