apt does not validate lists received from the network.

Bug #1406268 reported by James Lewis
272
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When loading update manager on my laptop, I noticed that it silently stopped and would not load or check for updates.

Upon investigation I discovered the following error:-
#apt-get update
.
.
.
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
#

The cause of this was that, some time ago it had tried to update while on a network which had some filtering, and the content of a number of files inside the folder "/var/lib/apt/lists" contained a "pay wall" HTML screen. I was however, no-longer connected to the network in question and the error persisted indefinitely until I manually removed the files which had the suspect content.

eg. sudo rm /var/lib/apt/lists/extras.ubuntu.com*

I see this as a significant security issue, since any user could connect to a public wifi point, and accidentally collect corrupted apt list data, either before signing on to a pay wall, or if they do not sign on, and after this _NO FURTHER UPDATES_ will be performed.

Tags: utopic
Revision history for this message
James Lewis (james-fsck) wrote :

I should have added that this is on 14.10, but I seem t remember this happening before in a much earlier release as well.

information type: Private Security → Public
Changed in apt (Ubuntu):
status: New → Confirmed
tags: added: utopic
information type: Public → Public Security
Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Joe Kemp (m-joe-v) wrote :

I'm having the same issue. In my case the file was a corrupt (probably partial download) of a bzip2 file. apt-get update fixes the issue.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Marking this as released. It seems we fixed most instances of these bugs in apt 1.1 and later (xenial and newer), with its massive changes to the acquire system.

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.