Test plan executed on a Pi 5, all went exactly as expected (failure with
current version on resolute, success with resolute-proposed, success
with current resolute version in an armhf container, repeated success
with resolute-proposed version in armhf container).
Some snippets:
$ PAGER= apt policy python3-smbus2
python3-smbus2:
Installed: 0.5.0-1
Candidate: 0.5.0-1ubuntu0.1
Version table:
0.5.0-1ubuntu0.1 100
100 http://archive.ubuntu.com/ubuntu resolute-proposed/universe arm64
Packages
100 /var/lib/dpkg/status
*** 0.5.0-1 500
500 http://archive.ubuntu.com/ubuntu resolute/universe arm64 Packages
$ python3
Python 3.14.4 (main, Apr 8 2026, 04:02:31) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from smbus2 import SMBus
>>> bus = SMBus(1)
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
bus = SMBus(1)
File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 280, in __init__
self.open(bus)
~~~~~~~~~^^^^^
File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 311, in open
self.funcs = self._get_funcs()
~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 367, in
_get_funcs
ioctl(self.fd, I2C_FUNCS, f)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^
SystemError: buffer overflow
>>>
$ sudo apt install -t resolute-proposed python3-smbus2
[ ... lots of apt stuff ... ]
$ PAGER= apt policy python3-smbus2
python3-smbus2:
Installed: 0.5.0-1ubuntu0.1
Candidate: 0.5.0-1ubuntu0.1
Version table:
*** 0.5.0-1ubuntu0.1 100
100 http://archive.ubuntu.com/ubuntu resolute-proposed/universe arm64
Packages
100 /var/lib/dpkg/status
0.5.0-1 500
500 http://archive.ubuntu.com/ubuntu resolute/universe arm64 Packages
$ python3
Python 3.14.4 (main, Apr 8 2026, 04:02:31) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from smbus2 import SMBus
>>> bus = SMBus(1)
>>>
** Tags removed: verification-needed-resolute
** Tags added: verification-done-resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152101
Title:
[SRU] Buffer overflow in _get_funcs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smbus2/+bug/2152101/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs