Warren Buffett's Berkshire Hathaway quietly built a stake in a struggling company over the past two quarters, a regulatory filing shows.