A flaw was found in sane-backends before version 1.0.30. An out-of-bounds read in decode_binary may lead to disclosure of information. Upstream issue: https://gitlab.com/sane-project/backends/-/issues/279#issue-5-ghsl-2020-082-out-of-bounds-read-in-decode_binary References: https://gitlab.com/sane-project/backends/-/releases
Created mingw-sane-backends tracking bugs for this issue: Affects: fedora-all [bug 1850582] Created sane-backends tracking bugs for this issue: Affects: fedora-all [bug 1850580]
External References: https://gitlab.com/sane-project/backends/-/issues/279#issue-5-ghsl-2020-082-out-of-bounds-read-in-decode_binary
Statement: The vulnerable code is a part of "driver for Epson ESC/I-2 scanners" which was first introduced in sane-backends-1.0.25. (via https://gitlab.com/sane-project/backends/-/commit/d72f4663c0ad6e6f779c15c8baf5f92b675ae19a) Therefore only versions of sane-backends shipped with Red Hat Enterprise Linux 8 is affected by this flaw.
Mitigation: This flaw can be mitigated by limiting network scanner discovery to a trusted subnet via the "net" configuration in the "/etc/sane.d/epsonds.conf" configuration file. Also automatic network scanner discovery can be turned off by commenting out the line "net autodiscovery" in the same configuration file.
Upstream patch: https://gitlab.com/sane-project/backends/-/commit/3d005c2570a71fe93a63192d9c47ee54cb39049b