Tobacco advertisment is banned in the EU. Advertising therefore is defined as marketing a product via sponsorship. There is no denying Ferraris logo is there for their title sponsor as Ferrari have their own logo which they place in the top "Marlboro chevron"
this is the Scuderia Ferrari logo

this is the Scuderia Ferrari Marlboro logo

Other teams lost out on their sponsorship money, Renault were hit the hardest, Struggling to get another title sponsor, ING came in for a wee bit but nothing compared to the money they got from Mild Seven. McLaren did alright after losing West, getting Vodafone who thought they were in prime place to be title sponsors for Ferrari once the ban came into affect in 2007. Ferrari seem to have a rules onto themselves for some things.