Description of problem: Running `scanadf --help -d fujitsu`. Happens every time. Similar issue encountered in the past: https://bugzilla.redhat.com/show_bug.cgi?id=1837961. Version-Release number of selected component: sane-frontends-1.0.14-45.fc38 Additional info: reporter: libreport-2.17.11 kernel: 6.3.11-200.fc38.x86_64 uid: 1000 journald_cursor: s=d899f6fe8f904e98aa74a0dc5772525c;i=3e391c8;b=975b92ba20a2459cb7abf597777f828a;m=106622a8cd7;t=6013ca5b182ef;x=9ff3f9c5d4f6773b backtrace_rating: 4 crash_function: sane_dll_close reason: scanadf killed by SIGSEGV rootdir: / runlevel: N 5 executable: /usr/bin/scanadf cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-yakuake cmdline: scanadf --help -d fujitsu type: CCpp package: sane-frontends-1.0.14-45.fc38 Truncated backtrace: Thread no. 1 (3 frames) #0 sane_dll_close at /usr/src/debug/sane-backends-1.2.1-1.fc38.x86_64/backend/dll.c:1316 #1 sane_close at /usr/src/debug/sane-backends-1.2.1-1.fc38.x86_64/backend/dll-s.c:82 #2 scanadf_exit at /usr/src/debug/sane-frontends-1.0.14-45.fc38.x86_64/src/scanadf.c:664
Created attachment 1977308 [details] File: backtrace
Created attachment 1977309 [details] File: proc_pid_status
Created attachment 1977310 [details] File: open_fds
Created attachment 1977311 [details] File: cpuinfo
Created attachment 1977312 [details] File: exploitable
Created attachment 1977313 [details] File: dso_list
Created attachment 1977314 [details] File: limits
Created attachment 1977315 [details] File: mountinfo
Created attachment 1977316 [details] File: os_info
Created attachment 1977317 [details] File: core_backtrace
Created attachment 1977318 [details] File: maps
Hi Raman, thank you for reporting the issue! scanadf closes the device handle before scanadf_exit(), but does not set it to NULL, which causes use-after-free leading to the segfault. I've created patch and sent it upstream as https://gitlab.com/sane-project/frontends/-/merge_requests/12 .
FEDORA-2023-0c94505bc7 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0c94505bc7
FEDORA-2023-97ce1b58b2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-97ce1b58b2
FEDORA-2023-97ce1b58b2 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-97ce1b58b2` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-97ce1b58b2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-0c94505bc7 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0c94505bc7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0c94505bc7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-0c94505bc7 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-97ce1b58b2 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.