DBI versions before 1.656 for Perl hang on a later open of a DBD::DBM table because a failed open_data does not release the table's lock. open_data cr...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libdbi-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibdbi-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
DBI versions before 1.656 for Perl hang on a later open of a DBD::DBM table because a failed open_data does not release the table's lock. open_data creates the table's lock file and takes an exclusive flock on it for a CREATE, before the checks that can croak: a dbm_mldbm value that is not a module name, a failing tie, or a missing data file. The croak unwinds before the table object is blessed, so nothing releases the lock, and the meta data holding the open descriptor stays cached on the database handle. The dbm_mldbm and dbm_type values come from the DSN or the connect attributes, so a caller that chooses the serializer or the storage backend can trigger the failure. The flock has no timeout, so a later open of that table (even through a separate database handle) blocks for as long as the handle holding the stale lock lives, in the same process or any other.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org